mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
update docs for TSInstall
This commit is contained in:
parent
282e18edd1
commit
ddb41c36e8
2 changed files with 4 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ $ git clone https://github.com/nvim-treesitter/nvim-treesitter.git
|
|||
|
||||
Treesitter is using a different _parser_ for every language. It can be quite a pain to install, but fortunately `nvim-treesitter`
|
||||
provides two command to tackle this issue:
|
||||
- `TSInstall` to install a given parser.
|
||||
- `TSInstall` to install one or more parser. You can use `TSInstall all` to download all parsers.
|
||||
- `TSInstallInfo` to know which parser is installed.
|
||||
|
||||
Let's say you need parsers for `lua`, `c`, and `python`, this is how you do with these commands:
|
||||
|
|
|
|||
|
|
@ -52,9 +52,10 @@ By default, everything is disabled. To enable support for features, in your `ini
|
|||
==============================================================================
|
||||
COMMANDS *nvim-treesitter-commands*
|
||||
|
||||
|:TSInstall| {language} *:TSInstall*
|
||||
|:TSInstall| {language} ... *:TSInstall*
|
||||
|
||||
Download, compile and install a parser for {language}
|
||||
Install one or more treesitter parsers.
|
||||
You can use |:TSInstall| `all` to install all parsers.
|
||||
|
||||
|:TSInstallInfo| *:TSInstallInfo*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue