python lsp is now all rust
This commit is contained in:
parent
319356d0a0
commit
7b9ca1d26c
1 changed files with 12 additions and 1 deletions
13
lua/lang.lua
13
lua/lang.lua
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue