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 | |
| 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)
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | doc/nvim-treesitter.txt | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 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, |
