Skip to content

Commit 38f8d88

Browse files
committed
update
1 parent 9210aa0 commit 38f8d88

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

lazy-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
66
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
77
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
8-
"codecompanion.nvim": { "branch": "main", "commit": "4f56b047f03bf5edc0d71bf0ca694243a49b912f" },
8+
"codecompanion.nvim": { "branch": "main", "commit": "7ffbc5a8f7ba349cea0c3f20bac6c404d4130a4a" },
99
"conform.nvim": { "branch": "master", "commit": "1a99fdc1d3aa9ccdf3021e67982a679a8c5c740c" },
1010
"copilot.lua": { "branch": "master", "commit": "1a237cf50372830a61d92b0adf00d3b23882e0e1" },
1111
"dressing.nvim": { "branch": "master", "commit": "fc78a3ca96f4db9f8893bb7e2fd9823e0780451b" },

lua/custom/plugins/codecompanion.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ return {
1313
config = function()
1414
require('codecompanion').setup {
1515
adapters = {
16+
opts = {
17+
show_defaults = false,
18+
},
1619
anthropic = require('codecompanion.adapters').extend('anthropic', {
1720
env = {
1821
api_key = 'CODECOMP_ANTHROPIC_API_KEY',
@@ -23,10 +26,15 @@ return {
2326
api_key = 'CODECOMP_DEEPSEEK_API_KEY',
2427
},
2528
}),
29+
gemini = require('codecompanion.adapters').extend('gemini', {
30+
env = {
31+
api_key = 'CODECOMP_GEMINI_API_KEY',
32+
},
33+
}),
2634
},
2735
strategies = {
2836
chat = {
29-
adapter = 'anthropic',
37+
adapter = 'gemini',
3038
slash_commands = {
3139
['file'] = {
3240
-- Location to the slash command in CodeCompanion
@@ -40,7 +48,7 @@ return {
4048
},
4149
},
4250
inline = {
43-
adapter = 'anthropic',
51+
adapter = 'gemini',
4452
},
4553
},
4654
}

0 commit comments

Comments
 (0)