From 460d421513675c61feb154a412b7b94b635a3a14 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Tue, 10 Sep 2024 14:10:41 +0200 Subject: [PATCH] Add ruff plugin to pylsp --- home-manager/shared/shell/helix/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home-manager/shared/shell/helix/default.nix b/home-manager/shared/shell/helix/default.nix index b8ee578..5aad24a 100644 --- a/home-manager/shared/shell/helix/default.nix +++ b/home-manager/shared/shell/helix/default.nix @@ -76,6 +76,15 @@ } ]; language-server = { + pylsp = { + config.pylsp.plugins = { + ruff = { + enabled = true; + ignore = ["F401"]; + lineLength = 120; + }; + }; + }; ruff = { command = "ruff-lsp"; };