mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 04:35:58 +01:00
r: changing treesitter package definition to mkGrammarOption
This commit is contained in:
parent
ae90ed1706
commit
42d7294a5e
1 changed files with 2 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
|||
inherit (lib.lists) isList;
|
||||
inherit (lib.types) enum either listOf package str;
|
||||
inherit (lib.nvim.lua) expToLua;
|
||||
inherit (lib.nvim.types) mkGrammarOption;
|
||||
|
||||
cfg = config.vim.languages.r;
|
||||
|
||||
|
@ -42,11 +43,7 @@ in {
|
|||
|
||||
treesitter = {
|
||||
enable = mkEnableOption "R treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||
package = mkOption {
|
||||
description = "R treesitter grammar to use";
|
||||
type = package;
|
||||
default = pkgs.vimPlugins.nvim-treesitter.builtGrammars.r;
|
||||
};
|
||||
package = mkGrammarOption pkgs "r";
|
||||
};
|
||||
|
||||
lsp = {
|
||||
|
|
Loading…
Reference in a new issue