From 90cda564958586c1184dc29506e97502fdeefca9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 19 Aug 2023 05:20:15 -0500 Subject: [PATCH] refactor(nvim): load treesitter on WinLeave --- dots/.config/nvim/lua/plugins/configs/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/dots/.config/nvim/lua/plugins/configs/treesitter.lua index b6ad08dd..4f1ec014 100644 --- a/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -98,7 +98,7 @@ return { { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", - event = { "BufReadPre", "BufNewFile" }, + event = { "BufReadPre", "BufNewFile", "WinLeave" }, dependencies = { "nvim-treesitter/playground", {