From f9f67d2d8038e740744164a8fd6dca8c02202380 Mon Sep 17 00:00:00 2001 From: Robson Roberto Souza Peixoto Date: Mon, 19 Jun 2023 09:32:29 -0300 Subject: [PATCH] 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 ``` --- 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",