mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
treesitter: add ignoreInstall option to treesitter config (#38)
This commit is contained in:
parent
f9304b5f6a
commit
88fb867da5
1 changed files with 11 additions and 3 deletions
|
@ -15,9 +15,15 @@ in
|
||||||
description = "Install grammars with Nix (beta)";
|
description = "Install grammars with Nix (beta)";
|
||||||
};
|
};
|
||||||
ensureInstalled = mkOption {
|
ensureInstalled = mkOption {
|
||||||
type = with types; oneOf [ (enum [ "all" "maintained" ]) (listOf str) ];
|
type = with types; oneOf [ (enum ["all"]) (listOf str) ];
|
||||||
default = "maintained";
|
default = "all";
|
||||||
description = "Either \"all\", \"maintained\" or a list of languages";
|
description = "Either \"all\" or a list of languages";
|
||||||
|
};
|
||||||
|
|
||||||
|
ignoreInstall = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
description = "List of parsers to ignore installing (for \"all\")";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabledLanguages = mkOption {
|
disabledLanguages = mkOption {
|
||||||
|
@ -77,6 +83,7 @@ in
|
||||||
} else null;
|
} else null;
|
||||||
|
|
||||||
ensure_installed = cfg.ensureInstalled;
|
ensure_installed = cfg.ensureInstalled;
|
||||||
|
ignore_install = cfg.ignoreInstall;
|
||||||
};
|
};
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
|
@ -96,3 +103,4 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue