treesitter: mention builtGrammars in grammars option

This commit is contained in:
raf 2025-04-04 16:45:05 +03:00
parent 68346ebede
commit 072f7599ae
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF

View file

@ -24,12 +24,19 @@ in {
grammars = mkOption { grammars = mkOption {
type = listOf package; type = listOf package;
default = []; default = [];
example = literalExpression ''
pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
regex
kdl
];
'';
description = '' description = ''
List of treesitter grammars to install. List of treesitter grammars to install. For grammars to be installed properly,
you must use grammars from `pkgs.vimPlugins.nvim-treesitter.builtGrammars`.
For languages already supported by nvf, you may For languages already supported by nvf, you may use
use the {option}`vim.language.<lang>.treesitter` options, which {option}`vim.language.<lang>.treesitter` options, which will automatically add
will automatically add the required grammars to this. the required grammars to this.
''; '';
}; };