feat: conditionally add org ts grammar if orgmode is enabled

This commit is contained in:
NotAShelf 2023-02-06 01:08:57 +03:00
parent f2e93a22c7
commit 1027e6d58f
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -29,7 +29,8 @@ in {
grammars = mkOption { grammars = mkOption {
type = with types; listOf package; type = with types; listOf package;
default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars); [ default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars);
[
c c
cpp cpp
nix nix
@ -46,7 +47,8 @@ in {
graphql graphql
json json
zig zig
]; ]
++ (optional config.vim.notes.orgmode.enable org); # add orgmode grammar if enabled
description = '' description = ''
List of treesitter grammars to install. List of treesitter grammars to install.
When enabling a language, its treesitter grammar is added for you. When enabling a language, its treesitter grammar is added for you.