fix(hints-popup): don't show the hints-popup on the terminal buffer (#1847)

This commit is contained in:
guanghechen
2025-04-11 10:20:00 +08:00
committed by GitHub
parent 07105d8e31
commit f97352e95d

View File

@@ -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