fix: allow lazy loading AvanteAskNew (#2598)
This commit is contained in:
@@ -137,6 +137,7 @@ function M.ask(opts)
|
|||||||
sidebar:close({ goto_code_win = false })
|
sidebar:close({ goto_code_win = false })
|
||||||
end
|
end
|
||||||
require("avante").open_sidebar(opts)
|
require("avante").open_sidebar(opts)
|
||||||
|
sidebar = require("avante").get()
|
||||||
if new_chat then sidebar:new_chat() end
|
if new_chat then sidebar:new_chat() end
|
||||||
if opts.without_selection then
|
if opts.without_selection then
|
||||||
sidebar.code.selection = nil
|
sidebar.code.selection = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user