nvim++ #134
2 changed files with 10 additions and 2 deletions
|
@ -63,6 +63,14 @@ in
|
||||||
}
|
}
|
||||||
# Do not bundle treesitter grammars
|
# Do not bundle treesitter grammars
|
||||||
(lib.mkIf (!cfg.dev.bundleGrammars) { plugins.treesitter.grammarPackages = [ ]; })
|
(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
|
# Configure Formatters
|
||||||
{
|
{
|
||||||
extraPackages = [
|
extraPackages = [
|
||||||
|
|
|
@ -16,8 +16,8 @@ in
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
enable = mkDisableOption "development configuration";
|
enable = mkDisableOption "development configuration";
|
||||||
bundleLSPs = mkDisableOption "bundling LSPs with Neovim";
|
bundleLSPs = mkDisableOption "bundling LSPs with Neovim (decreases size when disabled)";
|
||||||
bundleGrammars = mkDisableOption "bundling treesitter grammars with Neovim";
|
bundleGrammars = mkDisableOption "bundling treesitter grammars with Neovim (barely decreases size when disabled)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
default = { };
|
default = { };
|
||||||
|
|
Loading…
Reference in a new issue