diff --git a/nvim/dev-plugins.nix b/nvim/dev-plugins.nix index 31c4096..07683d8 100644 --- a/nvim/dev-plugins.nix +++ b/nvim/dev-plugins.nix @@ -63,6 +63,14 @@ in } # Do not bundle treesitter grammars (lib.mkIf (!cfg.dev.bundleGrammars) { plugins.treesitter.grammarPackages = [ ]; }) + # Remove tools for building gramars when bundling them + (lib.mkIf cfg.dev.bundleGrammars { + plugins.treesitter = { + gccPackage = null; + nodejsPackage = null; + treesitterPackage = null; + }; + }) # Configure Formatters { extraPackages = [ diff --git a/nvim/options.nix b/nvim/options.nix index 40166fc..1e54e30 100644 --- a/nvim/options.nix +++ b/nvim/options.nix @@ -16,8 +16,8 @@ in type = types.submodule { options = { enable = mkDisableOption "development configuration"; - bundleLSPs = mkDisableOption "bundling LSPs with Neovim"; - bundleGrammars = mkDisableOption "bundling treesitter grammars with Neovim"; + bundleLSPs = mkDisableOption "bundling LSPs with Neovim (decreases size when disabled)"; + bundleGrammars = mkDisableOption "bundling treesitter grammars with Neovim (barely decreases size when disabled)"; }; }; default = { };