mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
Document setting foldmethod alongside foldexpr
This commit is contained in:
parent
4b74045bbe
commit
fed6782318
2 changed files with 2 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ Treesitter-based folding is provided by Neovim. To enable it, put the following
|
|||
|
||||
```lua
|
||||
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||
vim.wo.foldmethod = 'expr'
|
||||
```
|
||||
|
||||
## Indentation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue