From 7c928a4e04cda90af7c8fe140b525c8baebed677 Mon Sep 17 00:00:00 2001 From: brewinski Date: Mon, 2 Dec 2024 22:22:23 +1000 Subject: [PATCH] fix (sidebar) add file context as a window that is visitable via the tab key --- lua/avante/sidebar.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 3157c8f19..5563c047b 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1001,6 +1001,7 @@ function Sidebar:refresh_winids() local winids = {} if self.winids.result then table.insert(winids, self.winids.result) end + if self.winids.context_view then table.insert(winids, self.winids.context_view) end if self.winids.selected_code then table.insert(winids, self.winids.selected_code) end if self.winids.input then table.insert(winids, self.winids.input) end @@ -1400,6 +1401,7 @@ function Sidebar:create_selected_code() size = { height = selected_code_size + 3, }, + position = "top", }) self.selected_code:mount() if self:get_layout() == "horizontal" then