From 6b1efe78e2b7fd5c40850d771c339bebae39ee49 Mon Sep 17 00:00:00 2001 From: Robson Roberto Souza Peixoto <124390+robsonpeixoto@users.noreply.github.com> Date: Mon, 19 Jun 2023 11:09:23 -0300 Subject: [PATCH] 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 ``` --- lua/lazyvim/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazyvim/plugins/treesitter.lua b/lua/lazyvim/plugins/treesitter.lua index 66c9a3eb..b565e862 100644 --- a/lua/lazyvim/plugins/treesitter.lua +++ b/lua/lazyvim/plugins/treesitter.lua @@ -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",