Closed gytis-ivaskevicius closed 2 years ago
I'm not sure how you have the rest of your configs but the problem might be that if you really are using rust-tools you need to pass the config into the rust-tools setup function.
local rust_opts = {
server = {
cmd = ['/path/to-rust-analyzer']
},
}
require('rust-tools').setup(rust_opts)
Yep, this is exactly what I was looking for. Thanks!
Also please don't call lspconfig's setup, as rust-tools does it automatically and it causes conflicts if called twice
I found a little edge case and I am not sure how to solve it.
Error:
My setup:
rust-analyzer
is in fact NOT in path, BUT is being passed directly to lspcmd
attribute as path: