Skip to content

Commit

Permalink
feat(treesitter): allow run TSUpdateSync from command line (#944)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
robsonpeixoto committed Jun 19, 2023
1 parent b37616c commit 6b1efe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazyvim/plugins/treesitter.lua
Expand Up @@ -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",
Expand Down

0 comments on commit 6b1efe7

Please sign in to comment.