mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01:00
feat: conditionally add org ts grammar if orgmode is enabled
This commit is contained in:
parent
f2e93a22c7
commit
1027e6d58f
1 changed files with 20 additions and 18 deletions
|
@ -29,7 +29,8 @@ in {
|
|||
|
||||
grammars = mkOption {
|
||||
type = with types; listOf package;
|
||||
default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars); [
|
||||
default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars);
|
||||
[
|
||||
c
|
||||
cpp
|
||||
nix
|
||||
|
@ -46,7 +47,8 @@ in {
|
|||
graphql
|
||||
json
|
||||
zig
|
||||
];
|
||||
]
|
||||
++ (optional config.vim.notes.orgmode.enable org); # add orgmode grammar if enabled
|
||||
description = ''
|
||||
List of treesitter grammars to install.
|
||||
When enabling a language, its treesitter grammar is added for you.
|
||||
|
|
Loading…
Reference in a new issue