fix: allow lazy loading AvanteAskNew (#2598)

This commit is contained in:
Peter Cardenas
2025-08-12 00:13:20 -07:00
committed by GitHub
parent 5a4ed4ac92
commit dd151e7f45

View File

@@ -137,6 +137,7 @@ function M.ask(opts)
sidebar:close({ goto_code_win = false })
end
require("avante").open_sidebar(opts)
sidebar = require("avante").get()
if new_chat then sidebar:new_chat() end
if opts.without_selection then
sidebar.code.selection = nil