switch python lsp to ruff
This commit is contained in:
parent
994e42f688
commit
e6e2555274
1 changed files with 9 additions and 3 deletions
12
lua/lsp.lua
12
lua/lsp.lua
|
@ -65,9 +65,15 @@ for _, lsp in ipairs(servers) do
|
|||
nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach}
|
||||
end
|
||||
|
||||
nvim_lsp.pyright.setup({
|
||||
on_attach = on_attach,
|
||||
})
|
||||
nvim_lsp.ruff_lsp.setup {
|
||||
on_attach = on_attach,
|
||||
init_options = {
|
||||
settings = {
|
||||
-- Any extra CLI arguments for `ruff` go here.
|
||||
args = {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nvim_lsp.ruff_lsp.setup({
|
||||
on_attach = on_attach,
|
||||
|
|
Reference in a new issue