From 691c392827d875dbe00f3041af980c9187dec1f3 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Tue, 17 Dec 2024 21:21:05 -0800 Subject: [PATCH] fix: clear treesitter cache of hidden win (closes #1583) --- lua/fzf-lua/win.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/fzf-lua/win.lua b/lua/fzf-lua/win.lua index 908bdc02..e75be70b 100644 --- a/lua/fzf-lua/win.lua +++ b/lua/fzf-lua/win.lua @@ -512,6 +512,7 @@ function FzfWin:new(o) elseif _self and _self:hidden() then -- Clear the hidden buffers vim.api.nvim_buf_delete(_self._hidden_fzf_bufnr, { force = true }) + TSInjector.clear_cache(_self._hidden_fzf_bufnr) _self = nil end o = o or {}