From 146847f5c5845d5d958b9be2355b5f83c4fe905a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 7 Nov 2024 18:25:12 +0100 Subject: [PATCH] feat(nvim): enable zig support But don't bundle ZLS, it is too big. --- nvim/dev-plugins.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nvim/dev-plugins.nix b/nvim/dev-plugins.nix index 19aaa40..3d4757b 100644 --- a/nvim/dev-plugins.nix +++ b/nvim/dev-plugins.nix @@ -10,7 +10,7 @@ let cfg = config.jhome.nvim; enabledLSPs = [ "bashls" - # "clangd" # Adds ~2GiB + "clangd" # "html" # Not writing html "jsonls" "marksman" @@ -21,6 +21,7 @@ let # "texlab" # Not using it "typos_lsp" # "typst_lsp" # Not using it + "zls" ]; in { @@ -43,7 +44,13 @@ in plugins = { lsp = { enable = true; - servers.bashls.package = lib.mkDefault pkgs.bash-language-server; + servers = { + bashls.package = lib.mkDefault pkgs.bash-language-server; + # Adds ~2 GiB, install in a devShell instead + clangd.package = lib.mkDefault null; + # zls & other zig tools are big, install in a devShell instead + zls.package = lib.mkDefault null; + }; }; lspkind = { enable = true;