Skip to content

Instantly share code, notes, and snippets.

@wulymammoth
Created January 17, 2026 02:33
Show Gist options
  • Select an option

  • Save wulymammoth/52efd6e885bdebd12e4ea3bdfc06c773 to your computer and use it in GitHub Desktop.

Select an option

Save wulymammoth/52efd6e885bdebd12e4ea3bdfc06c773 to your computer and use it in GitHub Desktop.
CodeCompanion.nvim config
return {
{
"olimorris/codecompanion.nvim",
version = "^18.0.0",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
adapters = {
acp = {
codex = function()
return require("codecompanion.adapters").extend("codex", {
defaults = {
auth_method = "chatgpt",
},
})
end,
},
},
strategies = {
chat = {
adapter = "codex",
},
inline = {
adapter = {
name = "anthropic",
model = "claude-opus-4-5-20251101",
},
},
cmd = {
adapter = {
name = "anthropic",
model = "claude-opus-4-5-20251101",
},
},
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment