added tree-sitter

This commit is contained in:
2026-06-21 23:15:03 +02:00
parent c06dc8ba3b
commit d1f5d71850
4 changed files with 85 additions and 6 deletions
+24 -6
View File
@@ -62,12 +62,30 @@ Open a terminal in a vertical split:
Leave terminal mode and return to normal mode:
```vim
<C-\><C-n>
```
In this config, `<Esc>` in terminal mode is mapped to the same command:
```vim
<Esc>
```
## Tree-sitter
Tree-sitter is managed with `nvim-treesitter` via `vim.pack`.
Installing missing parsers requires the external tools from the upstream README:
- `tar`
- `curl`
- `tree-sitter-cli`
- a C compiler
If `tree-sitter` is on your `PATH`, startup will try to install the configured parsers if they are missing.
Useful commands:
```vim
:TSUpdate
:TSInstall lua bash json
:TSInstallInfo
:InspectTree
:checkhealth vim.treesitter
```