1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-25 17:19:47 +01:00

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,24 +29,26 @@ in {
grammars = mkOption {
type = with types; listOf package;
default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars); [
c
cpp
nix
python
rust
markdown
comment
toml
make
tsx
html
javascript
css
graphql
json
zig
];
default = with (pkgs.vimPlugins.nvim-treesitter.builtGrammars);
[
c
cpp
nix
python
rust
markdown
comment
toml
make
tsx
html
javascript
css
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.