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", {