From fc8fea536f84a5b7c8f7782b73b5104a50ca6966 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 20 Jul 2023 13:28:39 +0100 Subject: [PATCH] Add cmd condition to load treesitter --- lua/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index d606e3e..82ed616 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -2,6 +2,7 @@ return { "nvim-treesitter/nvim-treesitter", version = false, build = ":TSUpdate", + cmd = {"TSUpdate", "TSInstall"}, event = { "BufReadPre", "BufNewFile" }, dependencies = "nvim-treesitter/nvim-treesitter-refactor", config = function(_, opts)