feat(nvim): remove TS tools when bundling grammars
All checks were successful
/ check (push) Successful in 51s
/ build (audiomenu) (push) Successful in 3s
/ build (docs) (push) Successful in 3s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 2s

They are not needed as we are not building any grammars (we are bundling
them)
This commit is contained in:
Jalil David Salamé Messina 2024-11-06 22:56:37 +01:00
parent c0d70b3146
commit cab3dcbc32
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 10 additions and 2 deletions

View file

@ -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 = [

View file

@ -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 = { };