From 27c22bed6e5017a40636169c5f355ade901ed77c Mon Sep 17 00:00:00 2001 From: Jonas Widen Date: Sun, 16 Mar 2025 19:23:16 +0100 Subject: [PATCH] Restore chat history --- lua/gemini/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/gemini/init.lua b/lua/gemini/init.lua index 5aa34eb..dbf91d9 100644 --- a/lua/gemini/init.lua +++ b/lua/gemini/init.lua @@ -24,8 +24,9 @@ function M.query(prompt, context) chat.set_context(context) chat.create_window() + -- Don't add the thinking message to conversation history local initial_content = "User: " .. prompt .. "\n\nAssistant: Thinking..." - chat.update_content(initial_content, true) + chat.update_content(initial_content, true, true) -- Add new parameter to indicate temporary content vim.cmd('redraw') api.get_response(prompt, context, function(response, error)