From 082d232b74cb2839deab2ece0587dd03f9f434df Mon Sep 17 00:00:00 2001 From: Fabio Montefuscolo Date: Fri, 5 Apr 2024 11:43:54 +0200 Subject: [PATCH] fix: failing ruff (null-ls removed this builtin) --- configs/lspconfig.lua | 13 +++++++++++++ configs/null-ls.lua | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) 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