diff --git a/configs/lspconfig.lua b/configs/lspconfig.lua index aea4805..2d9c993 100644 --- a/configs/lspconfig.lua +++ b/configs/lspconfig.lua @@ -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"}, +}) diff --git a/configs/null-ls.lua b/configs/null-ls.lua index 51220e1..1bc1700 100644 --- a/configs/null-ls.lua +++ b/configs/null-ls.lua @@ -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