From c38ca8f1af71e87ac79abedb3bacee482200a3d8 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 3 Aug 2024 20:45:19 +0300 Subject: [PATCH] fix: pressing has a 1 second delay (#311) Fixes https://github.com/mikavilpas/yazi.nvim/issues/295 --- lua/yazi/window.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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