From 041487f1db6c5d78c0c8de689c0a7771038533c4 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Tue, 7 Jul 2026 13:20:04 +0800 Subject: [PATCH] fix(autocmd): skip non-normal buftype for performance --- lua/opencode/ui/autocmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/opencode/ui/autocmds.lua b/lua/opencode/ui/autocmds.lua index 133ce972..bcc7ae35 100644 --- a/lua/opencode/ui/autocmds.lua +++ b/lua/opencode/ui/autocmds.lua @@ -43,7 +43,7 @@ function M.setup_autocmds(windows) group = group, pattern = '*', callback = function(args) - if args.file == '' then + if args.file == '' or vim.bo[args.buf].buftype ~= '' then return end require('opencode.ui.renderer.events').invalidate_reference_targets_for_file_change()