From b056fe2097af50eab318b1028845c8e7a3cd0c3a Mon Sep 17 00:00:00 2001 From: venus Date: Fri, 5 Jun 2026 03:12:43 -0500 Subject: [PATCH] trying to get AI integration to work :( --- lua/keybinds.lua | 8 +++++++- lua/plugins/codecompanion.lua | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lua/keybinds.lua b/lua/keybinds.lua index b61ae10..34bf370 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -56,7 +56,13 @@ vim.keymap.set("n","" ,"K" ,{ desc = "Move window to the upper -- vim.keymap.set("n", "a", ":IncRename ", {desc = 'ren[A]me variable under cursor'}) -- PLUGIN KEYBINDS --- gemini CLI bindngs +vim.keymap.set("n", "va" ,"CodeCompanionActions" ,{ desc = "Actions Panel", noremap = true, silent = true }) +vim.keymap.set("n", "vt" ,"CodeCompanionChat Toggle" ,{ desc = "Toggle Chat", noremap = true, silent = true }) +vim.keymap.set("v", "vg" ,"CodeCompanionChat Add" ,{ desc = "Add Chat", noremap = true, silent = true }) +vim.cmd([[cab cc CodeCompanion]]) + +-- Expand 'cc' into 'CodeCompanion' in the command line +vim.cmd([[cab cc CodeCompanion]]) -- TODO better AI implementation vim.keymap.set('n',"a/" ,"Gemini toggle" ,{ desc = "Toggle Gemini CLI" }) vim.keymap.set('n',"aa" ,"Gemini toggle" ,{ desc = "Toggle Gemini CLI" }) diff --git a/lua/plugins/codecompanion.lua b/lua/plugins/codecompanion.lua index bcdafff..562208c 100644 --- a/lua/plugins/codecompanion.lua +++ b/lua/plugins/codecompanion.lua @@ -7,8 +7,10 @@ return { opts = { interactions = { chat = { - adapter = "gemini", - model = "gemini-2.5-flash", + adapter = { + name = "gemini", + model = "gemini-3.5-flash", + } }, -- inline = { adapter = "gemini" }, -- cmd = { adapter = "gemini" },