mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared/programs/nixvim: add more tree-sitter grammars for note-taking
This commit is contained in:
parent
db589eae82
commit
bb18340944
@ -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
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user