python lsp is now all rust

This commit is contained in:
Vladan Popovic 2023-05-14 00:26:04 +02:00
parent 319356d0a0
commit 7b9ca1d26c

View file

@ -79,11 +79,22 @@ capabilities.textDocument.codeAction = {
capabilities.textDocument.completion.completionItem.snippetSupport = true; capabilities.textDocument.completion.completionItem.snippetSupport = true;
-- LSPs -- LSPs
local servers = {"pylsp", "vimls", "ocamllsp"} local servers = {"pylyzer", "vimls", "ocamllsp",}
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach} nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach}
end end
nvim_lsp.ruff_lsp.setup({
on_attach = on_attach,
capabilities = capabilities,
init_options = {
settings = {
-- Any extra CLI arguments for `ruff` go here.
args = {},
}
}
})
nvim_lsp.rust_analyzer.setup({ nvim_lsp.rust_analyzer.setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,