neoclide / coc-rls

Rust language server support for coc.nvim
387 stars 19 forks source link

Option to not to ask to install RLS? #66

Closed pbzweihander closed 4 years ago

pbzweihander commented 4 years ago

It is very annoying that RLS not installed. Install? message is constantly popping up every time I open up the vim. It will be nice to have an option like "rust-client.ask_to_install_rls" to disable the prompt.

chemzqm commented 4 years ago

But how could it work without rls?

iago-lito commented 4 years ago

I think they mean an option to say yes by default, is it what you meant @pbzweihander?

pbzweihander commented 4 years ago

No. I meant an option to say no by default. Check out my PR (#67)

I wanted to automatically disable coc-rls if RLS is not installed. This is useful when you override Rust version with rustup override set.

vincentmader commented 2 years ago

But how could it work without rls?

Why should it not work without rls? Of course you can edit code without using a linter/checker...

The thing is, if you're running vim+coc on an Apple M1 chip (which I do), you're simply not able to install rls on the nightly rust build. If you try, you get an "error: component 'rls' for target 'aarch64-apple-darwin' is unavailable for download for channel 'nightly'".

If you need to use the nightly build (which I do), then you'll have to manually say "no" every single time you start vim for rust development, which is super annoying, I've literally seen that prompt a dozen times only today. So until M1 + rust-nightly + coc-rls are compatible, I'd also strongly wish for an option like pbzweihander suggests.