This commit is contained in:
Hendra 2025-04-08 06:27:47 +07:00
parent 9210aa07ed
commit 38f8d88f65
2 changed files with 11 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"codecompanion.nvim": { "branch": "main", "commit": "4f56b047f03bf5edc0d71bf0ca694243a49b912f" },
"codecompanion.nvim": { "branch": "main", "commit": "7ffbc5a8f7ba349cea0c3f20bac6c404d4130a4a" },
"conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
"copilot.lua": { "branch": "master", "commit": "1a237cf50372830a61d92b0adf00d3b23882e0e1" },
"dressing.nvim": { "branch": "master", "commit": "fc78a3ca96f4db9f8893bb7e2fd9823e0780451b" },

View File

@ -13,6 +13,9 @@ return {
config = function()
require('codecompanion').setup {
adapters = {
opts = {
show_defaults = false,
},
anthropic = require('codecompanion.adapters').extend('anthropic', {
env = {
api_key = 'CODECOMP_ANTHROPIC_API_KEY',
@ -23,10 +26,15 @@ return {
api_key = 'CODECOMP_DEEPSEEK_API_KEY',
},
}),
gemini = require('codecompanion.adapters').extend('gemini', {
env = {
api_key = 'CODECOMP_GEMINI_API_KEY',
},
}),
},
strategies = {
chat = {
adapter = 'anthropic',
adapter = 'gemini',
slash_commands = {
['file'] = {
-- Location to the slash command in CodeCompanion
@ -40,7 +48,7 @@ return {
},
},
inline = {
adapter = 'anthropic',
adapter = 'gemini',
},
},
}