aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGabriel Holodak <gthepiper@gmail.com>2025-12-02 20:15:52 -0500
committerGitHub <noreply@github.com>2025-12-02 17:15:52 -0800
commitc5623d3486c1cda5f73e28a3a4abb454f708c48c (patch)
tree628bb7f6d25044cad39c18d64c9995102778c102 /README.md
parentfeat(vhs): update options list (#8309) (diff)
downloadnvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar.gz
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar.bz2
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar.lz
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar.xz
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.tar.zst
nvim-treesitter-c5623d3486c1cda5f73e28a3a4abb454f708c48c.zip
docs: document setting foldmethod alongside foldexpr (#8187)
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3ddf5b3df..8d2e22f41 100644
--- a/README.md
+++ b/README.md
@@ -101,6 +101,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