mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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)";
|
||||
};
|
||||
ensureInstalled = mkOption {
|
||||
type = with types; oneOf [ (enum [ "all" "maintained" ]) (listOf str) ];
|
||||
default = "maintained";
|
||||
description = "Either \"all\", \"maintained\" or a list of languages";
|
||||
type = with types; oneOf [ (enum ["all"]) (listOf str) ];
|
||||
default = "all";
|
||||
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 {
|
||||
|
@ -77,6 +83,7 @@ in
|
|||
} else null;
|
||||
|
||||
ensure_installed = cfg.ensureInstalled;
|
||||
ignore_install = cfg.ignoreInstall;
|
||||
};
|
||||
in mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
|
@ -96,3 +103,4 @@ in
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue