mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
Fold: update docs
Document foldnestmax.
This commit is contained in:
parent
8d6c40ce24
commit
7b972d581c
2 changed files with 7 additions and 2 deletions
|
|
@ -551,6 +551,9 @@ To use it: >
|
|||
set foldmethod=expr
|
||||
set foldexpr=nvim_treesitter#foldexr()
|
||||
<
|
||||
|
||||
This will respect your 'foldnestmax' setting.
|
||||
|
||||
Note: This is highly experimental, and folding can break on some types of
|
||||
edits. If you encounter such breakage, hiting `zx` should fix folding.
|
||||
In any case, feel free to open an issue with the reproducing steps.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue