How do I use Treesitter-aware code folding in Neovim for accurate fold regions based on syntax?
vim.treesitter.foldexpr()
Neovim's built-in Treesitter integration includes vim.
vim.treesitter.foldexpr()
Neovim's built-in Treesitter integration includes vim.
:InspectTree
Opens an interactive split window showing the treesitter parse tree for the current buffer.
:TSTextobjectSelect @function.outer
The nvim-treesitter-textobjects plugin provides syntax-aware text objects powered by Treesitter's AST parsing.
:TSInstall python javascript
nvim-treesitter provides improved syntax highlighting, indentation, and code navigation using Tree-sitter parsers.
Treesitter incremental selection with grn/grc
nvim-treesitter provides incremental selection that expands based on the syntax tree rather than simple text patterns.