fix: failing ruff (null-ls removed this builtin)

This commit is contained in:
Fabio Montefuscolo 2024-04-05 11:43:54 +02:00
parent 7b1dcff3ce
commit 082d232b74
Signed by: fabiomontefuscolo
GPG key ID: B98DA1C6A4DE48B5
2 changed files with 13 additions and 1 deletions

View file

@ -9,5 +9,18 @@ lspconfig.pyright.setup({
on_attach = on_attach,
capabilities = capabilities,
filetypes = {"python"},
settings = {
pyright = {
disableOrganizeImports = true,
},
python = {
analysis = {
ignore = {"*"},
},
},
},
})
lspconfig.ruff_lsp.setup({
filetypes = {"python"},
})

View file

@ -5,7 +5,6 @@ local opts = {
sources = {
null_ls.builtins.formatting.black,
null_ls.builtins.diagnostics.mypy,
null_ls.builtins.diagnostics.ruff,
},
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then