feat(treesitter): allow run TSUpdateSync from command line

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 2023-06-19 09:32:29 -03:00
parent b37616c203
commit f9f67d2d80
No known key found for this signature in database

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",