mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
docs(fold): document and comment
This commit is contained in:
parent
d5e11c41cf
commit
03621e758c
2 changed files with 10 additions and 0 deletions
|
|
@ -206,3 +206,9 @@ Possible scope values are:
|
|||
- `global`: The definition is valid in the root scope
|
||||
- `local`: The definition is valid in the containing scope. This is the default behavior
|
||||
|
||||
### Folds
|
||||
|
||||
You can define folds for a given language by adding a `fold.scm` query.
|
||||
The `@fold` capture is used to fold a node.
|
||||
If the `fold.scm` query is not present, this will fallback to the `@scope` captures in the `locals`
|
||||
query.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue