Nvim: switch from rls to rust_analyzer
This commit is contained in:
@@ -53,15 +53,6 @@ vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
nvim_lsp.rls.setup {
|
|
||||||
settings = {
|
|
||||||
rust = {
|
|
||||||
unstable_features = true,
|
|
||||||
build_on_save = false,
|
|
||||||
all_features = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
nvim_lsp.groovyls.setup {
|
nvim_lsp.groovyls.setup {
|
||||||
cmd = { "java", "-jar", "/home/kmcr/tools/groovy-language-server/build/libs/groovy-language-server-all.jar" },
|
cmd = { "java", "-jar", "/home/kmcr/tools/groovy-language-server/build/libs/groovy-language-server-all.jar" },
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@@ -84,7 +75,7 @@ nvim_lsp.ccls.setup {
|
|||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { "pylsp", "cmake" }
|
local servers = { "pylsp", "cmake", "rust_analyzer" }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|||||||
Reference in New Issue
Block a user