diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 3b5fe8d..31e57b4 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -278,6 +278,9 @@ function Sidebar:update_content(content, opts) if opts.scroll then scroll_to_bottom() end + if opts.callback ~= nil then + opts.callback() + end end) else vim.defer_fn(function()