feat(experimental): add section for behaviour (#55)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham 2024-08-17 16:31:24 -04:00 committed by GitHub
parent ad09ea6058
commit c4e26a8767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -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 = {

View File

@ -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()