From a04835f90c8affda3db9c0d3ab87422ffbca6f64 Mon Sep 17 00:00:00 2001 From: Jonas Widen Date: Sun, 16 Mar 2025 21:33:03 +0100 Subject: [PATCH] Added completion --- lua/gemini/completion.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lua/gemini/completion.lua b/lua/gemini/completion.lua index d7f3c81..b950b94 100644 --- a/lua/gemini/completion.lua +++ b/lua/gemini/completion.lua @@ -40,7 +40,6 @@ local function parse_completion_response(response) end function M.get_completion(params, callback) - vim.notify("Gemini completion triggered", vim.log.levels.INFO) local cursor = vim.api.nvim_win_get_cursor(0) local line = cursor[1] local col = cursor[2] @@ -60,12 +59,9 @@ function M.get_completion(params, callback) before_cursor ) - vim.notify("Sending completion request to Gemini", vim.log.levels.INFO) - -- Get completion from Gemini api.get_response(prompt, nil, function(response, error) if error then - vim.notify("Completion error: " .. error, vim.log.levels.ERROR) callback({ { word = "Error: " .. error, @@ -76,7 +72,6 @@ function M.get_completion(params, callback) return end - vim.notify("Received completion response", vim.log.levels.INFO) local items = parse_completion_response(response) callback(items) end)