users/foo-dogsquared/programs/nixvim: add more tree-sitter grammars for note-taking

This commit is contained in:
Gabriel Arazas 2024-02-12 17:44:42 +08:00
parent db589eae82
commit bb18340944
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -34,13 +34,18 @@
};
};
# Install the common text markup tree-sitter grammars.
plugins.treesitter.grammarPackages = with pkgs.tree-sitter-grammars; [
tree-sitter-cooklang
tree-sitter-markdown
tree-sitter-org
tree-sitter-latex
]
# Install the tree-sitter parsers required for the core.defaults Neorg
# module.
plugins.treesitter.grammarPackages =
lib.mkIf
(config.plugins.neorg.extraOptions ? load."core.defaults")
(with pkgs.tree-sitter-grammars; [
tree-sitter-norg
tree-sitter-norg-meta
]);
++ lib.optionals (config.plugins.neorg.extraOptions ? load."core.defaults")
(with pkgs.tree-sitter-grammars; [
tree-sitter-norg
tree-sitter-norg-meta
]);
}