bug: User input split gets cleared when toggling with <leader> aa
Opened this issue · 0 comments
AndreVicencio commented
Describe the bug
While I'm in the middle of writting a prompt in Avante, it's very common scenario to copy some text or get reference from the user's main buffer and I would hide the avante window, Then when I re-open the Avante split my unsent input has now been wiped and I have to do it all again.
My current workaround is to control the Avante split display, instead of invoking it with leader-aa so the split is always present and the buffer is never list.
To reproduce
- Open avante side bar with leader-aa
- Input some text in the prompt window
- Close avante side bar with leader-aa
- Open avante side bar with leader-aa
Expected behavior
The Avante user input split buffer should not get reset when toggling with leader-aa
Installation method
Use lazy.nvim:
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
opts = {
-- add any opts here
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
}
Environment
not relevant