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
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:
parent
c0d70b3146
commit
cab3dcbc32
2 changed files with 10 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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 = { };
|
||||
|
|
Loading…
Reference in a new issue