nvim++ #134
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