From 76ea2b8871d2d053da46a7202efec12020d9c76e Mon Sep 17 00:00:00 2001 From: Shane Hird Date: Thu, 24 Jun 2021 23:20:29 +1000 Subject: TSUpdate does not install if up to date --- doc/nvim-treesitter.txt | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 1d480cdb6..6a0a7629b 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -184,10 +184,15 @@ Supported options: COMMANDS *nvim-treesitter-commands* *:TSInstall* -:TSInstall| {language} ...~ +:TSInstall {language} ...~ Install one or more treesitter parsers. -You can use |:TSInstall| `all` to install all parsers. +You can use |:TSInstall| `all` to install all parsers. Use |:TSInstall!| to +force the reinstallation of already installed parsers. + *:TSInstallSync* +:TSInstallSync {language} ...~ + +Perform the |:TSInstall| operation synchronously. *:TSInstallInfo* :TSInstallInfo~ @@ -195,10 +200,16 @@ You can use |:TSInstall| `all` to install all parsers. List informations about currently installed parsers *:TSUpdate* -:TSUpdate {language}~ +:TSUpdate {language} ...~ + +Update the installed parser for one more {language} or all installed parsers +if {language} is omitted. The specified parser is installed if it is not already +installed. + + *:TSUpdateSync* +:TSUpdateSync {language} ...~ -Update the installed parser of {language} or all installed parsers -if {language} is omitted. +Perform the |:TSUpdate| operation synchronously. *:TSUninstall* :TSUninstall {language}~ -- cgit v1.2.3-70-g09d2