AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.04k stars 212 forks source link

Add rust crates completion in Cargo.toml #1072

Closed serzhiio closed 4 days ago

serzhiio commented 5 days ago

Is your feature related to a problem?

No response

Describe the new feature

Crate name completion Crate names in dependencies can be completed from searches on crates.io. This has to be enabled separately:

require("crates").setup {
    ...
    completion = {
        crates = {
            enabled = true -- disabled by default
            max_results = 8 -- The maximum number of search results to display
            min_chars = 3 -- The minimum number of charaters to type before completions begin appearing
        }
    }
}

Link

Additional context

No response

Uzaaft commented 4 days ago

Feel free to open a PR @serzhiio

Uzaaft commented 4 days ago

@serzhiio I'd appreciate it if, in the future you also open a PR for small issues like this which you could've easily fixed. You know, to give back to the community :)

serzhiio commented 4 days ago

@serzhiio I'd appreciate it if, in the future you also open a PR for small issues like this which you could've easily fixed. You know, to give back to the community :)

I was not sure about such small update PR bc it could be done using config override.

@mehalter many thx!

mehalter commented 4 days ago

@serzhiio AstroCommunity is run and powered by the community, you get to decide what is a valid PR :) I will merge whatever gets opened as long as it's not just broken or malware.

mehalter commented 4 days ago

if someone in the community doesn't like it, then they can open up a PR to change it