fix: code buffer tab buttons should not be hijacked (#174)

This commit is contained in:
yetone 2024-08-23 18:38:14 +08:00 committed by GitHub
parent 25f8175662
commit 12d7cd8ec7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View File

@ -59,9 +59,7 @@ M.defaults = {
---Specify the behaviour of avante.nvim ---Specify the behaviour of avante.nvim
---1. auto_apply_diff_after_generation: Whether to automatically apply diff after LLM response. ---1. auto_apply_diff_after_generation: Whether to automatically apply diff after LLM response.
--- This would simulate similar behaviour to cursor. Default to false. --- This would simulate similar behaviour to cursor. Default to false.
---2. cycle_between_open_buffers : Enable tab cycling between windows. Default to true
behaviour = { behaviour = {
cycle_between_open_buffers = true,
auto_apply_diff_after_generation = false, auto_apply_diff_after_generation = false,
}, },
highlights = { highlights = {

View File

@ -819,9 +819,6 @@ function Sidebar:refresh_winids()
if self.winids.input then if self.winids.input then
table.insert(winids, self.winids.input) table.insert(winids, self.winids.input)
end end
if Config.behaviour.cycle_between_open_buffers and self.code.winid then
table.insert(winids, self.code.winid)
end
local function switch_windows() local function switch_windows()
local current_winid = api.nvim_get_current_win() local current_winid = api.nvim_get_current_win()