feat(treesitter): allow run TSUpdateSync from command line (#944)

Use a script to keep the neovim updated is really useful, but is not
possible by default because TSUpdateSync is not on `cmd` commands.

```sh
nvim --headless "+Lazy! sync" "+TSUpdateSync" +qa
```
This commit is contained in:
Robson Roberto Souza Peixoto authored and GitHub committed 2023-06-19 16:09:23 +02:00
1 parent b37616c203
commit 6b1efe78e2
1 file changed
+1
+1
View File
@@ -4,6 +4,7 @@ return {
version = false, -- last release is way too old and doesn't work on Windows
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
cmd = { "TSUpdateSync" },
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",