aboutsummaryrefslogtreecommitdiffstats
path: root/doc
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 /doc
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 'doc')
-rw-r--r--doc/nvim-treesitter.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 3bb3f9356..e6a67f398 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -45,6 +45,7 @@ Treesitter features for installed languages need to be enabled manually in a
vim.treesitter.start()
-- folds, provided by Neovim
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+ vim.wo.foldmethod = 'expr'
-- indentation, provided by nvim-treesitter
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,