update docs

This commit is contained in:
kiyan42 2020-10-19 21:32:54 +02:00 committed by Kiyan Yazdani
parent 1735528db5
commit f115d0ebaa
2 changed files with 65 additions and 110 deletions

View file

@ -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.