diff --git a/lua/yazi/window.lua b/lua/yazi/window.lua index 62b42e72..12a68410 100644 --- a/lua/yazi/window.lua +++ b/lua/yazi/window.lua @@ -134,10 +134,9 @@ function YaziFloatingWindow:open_and_display() end, }) - -- LazyVim sets to forcibly enter normal mode. This has been - -- confusing for some users. Let's disable it when using yazi.nvim only. + -- Prevents a bug with lazyvim involving which-key.nvim: pressing in + -- the terminal window opens which-key and ignores the keypress. vim.keymap.set('t', '', '', { buffer = yazi_buffer }) - vim.keymap.set({ 't' }, '', '', { buffer = yazi_buffer }) return self end