added tree-sitter
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user