treesitter: add ignoreInstall option to treesitter config (#38)

This commit is contained in:
Leah 2022-09-02 01:19:26 +02:00 committed by GitHub
parent f9304b5f6a
commit 88fb867da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
};
};
}