mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 13:30:17 +00:00
treesitter: support usage of pkgs.tree-sitter-grammars
This commit is contained in:
parent
ee3f6a2ff6
commit
53e89665ce
4 changed files with 23 additions and 4 deletions
|
|
@ -41,8 +41,12 @@ in {
|
|||
'';
|
||||
description = ''
|
||||
List of treesitter grammars to install. For grammars to be installed properly,
|
||||
you must use grammars from `pkgs.vimPlugins.nvim-treesitter.parsers` or `pkgs.vimPlugins.nvim-treesitter.grammarPlugins`.
|
||||
You can use `pkgs.vimPlugins.nvim-treesitter.allGrammars` to install all grammars.
|
||||
you must use grammars from one of those:
|
||||
- `pkgs.vimPlugins.nvim-treesitter.parsers`
|
||||
- `pkgs.vimPlugins.nvim-treesitter.grammarPlugins`
|
||||
- `pkgs.tree-sitter-grammars` (mostly untested)
|
||||
|
||||
You can use `pkgs.vimPlugins.nvim-treesitter.allGrammars` to install all grammars shipped with `nvim-treesitter`.
|
||||
|
||||
For languages already supported by nvf, you may use
|
||||
{option}`vim.language.<lang>.treesitter` options, which will automatically add
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue