From f7b51730dff93bd24c077f9243ae8d9f298b2266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=90?= <31800073+Parsifa1@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:24:03 +0800 Subject: [PATCH] fix(switch_windows): add nowait to avoid pre- keymap (#1028) --- lua/avante/sidebar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 2ec7d33..111d3e9 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1104,13 +1104,13 @@ function Sidebar:refresh_winids() { "n", "i" }, Config.mappings.sidebar.switch_windows, function() switch_windows() end, - { buffer = buf, noremap = true, silent = true } + { buffer = buf, noremap = true, silent = true, nowait = true } ) Utils.safe_keymap_set( { "n", "i" }, Config.mappings.sidebar.reverse_switch_windows, function() reverse_switch_windows() end, - { buffer = buf, noremap = true, silent = true } + { buffer = buf, noremap = true, silent = true, nowait = true } ) end end