mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
update docs
This commit is contained in:
parent
1735528db5
commit
f115d0ebaa
2 changed files with 65 additions and 110 deletions
13
README.md
13
README.md
|
|
@ -75,6 +75,7 @@ provides two command to tackle this issue:
|
|||
- `TSInstall {language}` to install one or more parsers.
|
||||
`TSInstall <tab>` will give you a list of supported languages, or select `all` to install them all.
|
||||
- `TSInstallInfo` to know which parser is installed.
|
||||
- `TSUpdate` to update already installed parsers
|
||||
|
||||
Let's say you need parsers for `lua`, this is how you install it:
|
||||
|
||||
|
|
@ -153,6 +154,18 @@ require'nvim-treesitter.configs'.setup {
|
|||
}
|
||||
```
|
||||
|
||||
## Indentation
|
||||
|
||||
Treesitter based indentation (`=` vim behavior)
|
||||
|
||||
```lua
|
||||
require'nvim-treesitter.config'.setup {
|
||||
indent = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
# External modules
|
||||
|
||||
Other modules can be installed as plugins.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue