From 2f7fb2cd95f0c01c45bf1067065f36611381bcd8 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 16 Sep 2024 20:32:06 -0300 Subject: [PATCH] feat(home/nvim/pylsp): make unused imports be a warning --- home/gabriel/features/nvim/lsp.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/gabriel/features/nvim/lsp.nix b/home/gabriel/features/nvim/lsp.nix index 28f0f360..873cf7c8 100644 --- a/home/gabriel/features/nvim/lsp.nix +++ b/home/gabriel/features/nvim/lsp.nix @@ -44,6 +44,15 @@ }}}) add_lsp(lspconfig.phpactor, {}) add_lsp(lspconfig.pylsp, { + settings = { + pylsp = { + plugins = { + ruff = { + severities = { ["F401"] = "W" } + } + } + } + }, capabilities = { experimental = { inlayHintProvider = true,