feat: use mkGrammarOption

This commit is contained in:
NotAShelf 2023-04-18 00:55:27 +03:00
commit 544792e0b9
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
13 changed files with 31 additions and 47 deletions

View file

@ -17,11 +17,7 @@ in {
type = types.bool;
default = config.vim.languages.enableTreesitter;
};
package = mkOption {
description = "Zig treesitter grammar to use";
type = types.package;
default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.zig;
};
package = nvim.types.mkGrammarOption pkgs "zig";
};
lsp = {
enable = mkOption {