Altered mkEnableTreesitterOption functionallity to take in a boolean instead of all of config

This commit is contained in:
isaacST08 2025-02-12 01:17:32 -07:00
commit 91a3f67a9e
2 changed files with 7 additions and 5 deletions

View file

@ -33,10 +33,10 @@
default = ["vimPlugins" "nvim-treesitter" "builtGrammars" grammar];
};
mkEnableTreesitterOption = config: language:
mkEnableTreesitterOption = defaultCondition: language:
mkOption {
type = bool;
default = config.vim.languages.enableTreesitter;
default = defaultCondition;
description = "Whether to enable ${language} treesitter";
};
in {