From 38f8d88f65f3a6b9c385f13d729860b9cb617a1b Mon Sep 17 00:00:00 2001 From: Hendra Date: Tue, 8 Apr 2025 06:27:47 +0700 Subject: [PATCH] update --- lazy-lock.json | 2 +- lua/custom/plugins/codecompanion.lua | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index b2f78ee6..8852fe40 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -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" }, diff --git a/lua/custom/plugins/codecompanion.lua b/lua/custom/plugins/codecompanion.lua index c0da1911..4de02cb7 100644 --- a/lua/custom/plugins/codecompanion.lua +++ b/lua/custom/plugins/codecompanion.lua @@ -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', }, }, }