Skip to content

Commit

Permalink
fix (sidebar) add file context as a window that is visitable via the …
Browse files Browse the repository at this point in the history
…tab key
  • Loading branch information
brewinski committed Dec 2, 2024
1 parent d167311 commit 7c928a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c928a4

Please sign in to comment.