From f97352e95dd56dba3ec6594b5512a801091c4423 Mon Sep 17 00:00:00 2001 From: guanghechen <42513619+guanghechen@users.noreply.github.com> Date: Fri, 11 Apr 2025 10:20:00 +0800 Subject: [PATCH] fix(hints-popup): don't show the hints-popup on the terminal buffer (#1847) --- lua/avante/selection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/selection.lua b/lua/avante/selection.lua index b2aa10e..5bbb6d2 100644 --- a/lua/avante/selection.lua +++ b/lua/avante/selection.lua @@ -314,7 +314,7 @@ function Selection:setup_autocmds() api.nvim_create_autocmd({ "CursorMoved" }, { group = self.augroup, callback = function(ev) - if not Utils.is_sidebar_buffer(ev.buf) then + if vim.bo[ev.buf].buftype ~= "terminal" and not Utils.is_sidebar_buffer(ev.buf) then if Utils.in_visual_mode() then self:show_shortcuts_hints_popup() else