mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -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
|
|
@ -299,14 +299,16 @@ EOF
|
|||
|
||||
# Extra features
|
||||
|
||||
- Syntax based code folding
|
||||
## Syntax based code folding
|
||||
|
||||
```vim
|
||||
set foldmethod=expr
|
||||
set foldexpr=nvim_treesitter#foldexpr()
|
||||
```
|
||||
|
||||
- Statusline indicator
|
||||
This will respect your `foldnestmax` setting.
|
||||
|
||||
## Statusline indicator
|
||||
|
||||
```vim
|
||||
echo nvim_treesitter#statusline(90) " 90 can be any length
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue