mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 23:15:30 +00:00
feat: use mkGrammarOption
This commit is contained in:
parent
84ecf8f3fd
commit
544792e0b9
13 changed files with 31 additions and 47 deletions
|
|
@ -41,16 +41,8 @@ in {
|
|||
type = types.bool;
|
||||
default = config.vim.languages.enableTreesitter;
|
||||
};
|
||||
cPackage = mkOption {
|
||||
description = "C treesitter grammar to use";
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.c;
|
||||
};
|
||||
cppPackage = mkOption {
|
||||
description = "C++ treesitter grammar to use";
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.cpp;
|
||||
};
|
||||
cPackage = nvim.types.mkGrammarOption pkgs "c";
|
||||
cppPackage = nvim.types.mkGrammarOption pkgs "cpp";
|
||||
};
|
||||
|
||||
lsp = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue