fix: failing ruff (null-ls removed this builtin)
This commit is contained in:
parent
7b1dcff3ce
commit
082d232b74
2 changed files with 13 additions and 1 deletions
|
@ -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"},
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue