feat(experimental): add section for behaviour (#55)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
ad09ea6058
commit
c4e26a8767
@ -27,6 +27,9 @@ M.defaults = {
|
||||
temperature = 0,
|
||||
max_tokens = 4096,
|
||||
},
|
||||
behaviour = {
|
||||
auto_apply_diff_after_generation = false, -- Whether to automatically apply diff after LLM response.
|
||||
},
|
||||
highlights = {
|
||||
---@type AvanteConflictHighlights
|
||||
diff = {
|
||||
|
@ -659,16 +659,15 @@ function Sidebar:render()
|
||||
end
|
||||
)
|
||||
|
||||
api.nvim_set_current_win(self.winid.result)
|
||||
|
||||
-- Display notification
|
||||
-- show_notification("Content generation complete!")
|
||||
|
||||
-- Save chat history
|
||||
table.insert(chat_history or {}, { timestamp = timestamp, requirement = user_input, response = full_response })
|
||||
save_chat_history(self, chat_history)
|
||||
end
|
||||
)
|
||||
|
||||
if Config.behaviour.auto_apply_diff_after_generation then
|
||||
apply()
|
||||
end
|
||||
end
|
||||
|
||||
local body = function()
|
||||
|
Loading…
x
Reference in New Issue
Block a user