-
With a basically default LazyVim config I get the following error with the
I have not setup anything to my knowledge that should setup rust_analyzer besides this and I can't figure out whats wrong... Maybe you can take a look at my config here: OMGeeky/nvim-config-1 I am quite inexperienced with nvim so it might just be something stupid but I just can't figure it out. Thanks for any help you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hey 👋 I'm not familiar with the internals of LazyVim, and I can't see anything wrong in your config. The health check searches for rust filetype autocommands created by lspconfig and reports the error if it finds one. You could try opening a rust file and running {
"neovim/nvim-lspconfig",
opts = {
setup = {
rust_analyzer = function()
return true
end,
},
},
} Or, more generally (for anyone not using LazyVim): require("mason-lspconfig").setup_handlers {
["rust_analyzer"] = function() end,
} |
Beta Was this translation helpful? Give feedback.
Hey 👋
I'm not familiar with the internals of LazyVim, and I can't see anything wrong in your config.
The health check searches for rust filetype autocommands created by lspconfig and reports the error if it finds one.
You could try opening a rust file and running
:LspInfo
. It should tell you if more than one client is attached.If that's the case, then you can try explicitly disabling the
rust_analyzer
configuration in lspconfig with the following LazyVim snippet:Or, more generally (for anyone not using LazyVim):