Skip to content

Commit

Permalink
fix(switch_windows): add nowait to avoid pre-<Tab> keymap (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsifa1 authored Jan 5, 2025
1 parent ec5d1ab commit f7b5173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7b5173

Please sign in to comment.