From 0aaa91d267325ab03bdda75ffcf3779ffbde3eb3 Mon Sep 17 00:00:00 2001 From: Shaobin Jiang Date: Wed, 3 Sep 2025 14:01:31 +0800 Subject: [PATCH] fix: switch_windows keymap not reflected in sidebar (#2675) --- lua/avante/sidebar.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index af27de9..f98a1e5 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -994,11 +994,12 @@ function Sidebar:render_input(ask) if self.code.selection ~= nil then header_text = string.format( - "%s%s (%d:%d) (: switch focus)", + "%s%s (%d:%d) (%s: switch focus)", Utils.icon("󱜸 "), ask and "Ask" or "Chat with", self.code.selection.range.start.lnum, - self.code.selection.range.finish.lnum + self.code.selection.range.finish.lnum, + Config.mappings.sidebar.switch_windows ) end