From a69d1c70b1d28aea752836d3aa6df0925a9e5baa Mon Sep 17 00:00:00 2001 From: Jonas Widen Date: Mon, 17 Mar 2025 07:54:01 +0100 Subject: [PATCH] debug completion --- lua/gemini/completion.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/gemini/completion.lua b/lua/gemini/completion.lua index be5d254..2ab8214 100644 --- a/lua/gemini/completion.lua +++ b/lua/gemini/completion.lua @@ -227,7 +227,7 @@ function M.trigger_completion() %s Based on the surrounding code context, what would be the most appropriate code to add at the cursor position? -Return ONLY the code that should be added, no explanation.]], vim.bo.filetype, cursor_line, full_context) +Return ONLY the raw code without any markdown formatting, language hints, or code blocks.]], vim.bo.filetype, cursor_line, full_context) -- Get completion from Gemini api.get_response(prompt, nil, function(response, error) @@ -304,7 +304,7 @@ Return ONLY the code that should be added, no explanation.]], vim.bo.filetype, c %s Complete the code at the cursor position. Consider the syntax and style of the surrounding code. -Return ONLY the completion that would naturally follow, no explanation. +Return ONLY the raw completion text without any markdown formatting, language hints, or code blocks. The completion can be multiple lines if appropriate for the context.]], file_type, cursor_line, full_context) -- Check cache first