mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
Created mkEnableTreesitterOption in the extendend library
This commit is contained in:
parent
fe84f0e56f
commit
0b85f56868
3 changed files with 17 additions and 8 deletions
|
|
@ -4,21 +4,23 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
# inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.nvim.types) mkGrammarOption;
|
||||
inherit (lib.nvim.types) mkGrammarOption mkEnableTreesitterOption;
|
||||
|
||||
cfg = config.vim.languages.tex;
|
||||
|
||||
mkEnableTreesitterOption = description: mkEnableOption description // {default = config.vim.languages.enableTreesitter;};
|
||||
# mkEnableTreesitterOption = description: mkEnableOption description // {default = config.vim.languages.enableTreesitter;};
|
||||
in {
|
||||
options.vim.languages.tex.treesitter = {
|
||||
latex = {
|
||||
enable = mkEnableTreesitterOption "Whether to enable Latex treesitter";
|
||||
# enable = mkEnableTreesitterOption "Whether to enable Latex treesitter";
|
||||
enable = mkEnableTreesitterOption config "latex";
|
||||
package = mkGrammarOption pkgs "latex";
|
||||
};
|
||||
bibtex = {
|
||||
enable = mkEnableTreesitterOption "Whether to enable Bibtex treesitter";
|
||||
# enable = mkEnableTreesitterOption "Whether to enable Bibtex treesitter";
|
||||
enable = mkEnableTreesitterOption config "bibtex";
|
||||
package = mkGrammarOption pkgs "bibtex";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue