diff options
| author | Gabriel Holodak <gthepiper@gmail.com> | 2025-12-02 20:15:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-02 17:15:52 -0800 |
| commit | c5623d3486c1cda5f73e28a3a4abb454f708c48c (patch) | |
| tree | 628bb7f6d25044cad39c18d64c9995102778c102 /doc | |
| parent | feat(vhs): update options list (#8309) (diff) | |
| download | nvim-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.txt | 1 |
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, |
