-
|
Hello. Firstly, thanks for making CodeCompanion. Without it, I'd have had to change editors. Symptoms Steps to reproduce
Context return {
"olimorris/codecompanion.nvim",
version = "v17.33.0",
lazy = false,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
config = function()
local codecompanion = require("codecompanion")
codecompanion.setup({
strategies = {
chat = {
adapter = "gemini_cli",
opts = {
completion_provider = "blink",
},
},
inline = {
adapter = "gemini_cli",
keymaps = {
accept_change = {
modes = { n = "ga" },
description = "Accept the suggested change",
},
reject_change = {
modes = { n = "gr" },
opts = { nowait = true },
description = "Reject the suggested change",
},
stop = {
modes = { n = "q" },
index = 4,
callback = "keymaps.stop",
description = "Stop (abort) request",
},
},
},
},
adapters = {
http = {
gemini = function()
return require("codecompanion.adapters").extend("gemini", {
schema = {
model = {
default = "gemini-3-pro-preview",
},
},
env = {
api_key = "cmd:op read op://Employee/ukafu5czkq37oo7thictjenh4e/credential --no-newline",
},
})
end,
},
-- ACP allows agentic mode, including inline edits.
acp = {
gemini_cli = function()
return require("codecompanion.adapters").extend("gemini_cli", {
defaults = {
auth_method = "gemini-api-key", -- "oauth-personal"|"gemini-api-key"|"vertex-ai"
},
env = {
GEMINI_API_KEY = "cmd:op read op://Employee/ukafu5czkq37oo7thictjenh4e/credential --no-newline",
},
})
end,
},
},
opts = {
log_level = "DEBUG",
},
})
end,
}I have installed Gemini-CLI using Things I've tried:
No joy. Any clues what might be going on here? 😬 Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Thanks for your kind words. Your setup looks good. Couple of things to try:
|
Beta Was this translation helpful? Give feedback.
-
|
I ran into this same issue and updating gemini-cli to v0.20.0 resolved it. It looks like it was caused by a change that violated the ACP protocol definition. |
Beta Was this translation helpful? Give feedback.
I ran into this same issue and updating gemini-cli to v0.20.0 resolved it.
It looks like it was caused by a change that violated the ACP protocol definition.
google-gemini/gemini-cli#13646