From 8d80114fe8843cbb843d8ad46758679a48333d3b Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 17 Jul 2024 00:41:43 +0100 Subject: [PATCH] feat(helix): use nixd and mypy for pylsp --- roles/home/helix.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/home/helix.nix b/roles/home/helix.nix index ea10371..0c8c3a6 100644 --- a/roles/home/helix.nix +++ b/roles/home/helix.nix @@ -17,6 +17,8 @@ let python-lsp-ruff pylsp-rope rope + mypy + pylsp-mypy ]); in { @@ -26,7 +28,7 @@ in helix clang-tools rust-analyzer - nil + nixd texlab nixpkgs-fmt shellcheck @@ -74,10 +76,15 @@ in [[language]] name = "nix" formatter = { command = "nixpkgs-fmt" } + language-servers = ["nixd"] + + [language-server.nixd] + command = "nixd" [language-server.pylsp.config.pylsp.plugins] ruff = {enabled = true} rope = {enabled = true} + mypy = {enabled = true} [[language]] name = "bash"