1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-06-03 10:39:02 +00:00

[neovim] Update mcphub/avante conf

This commit is contained in:
Daniel Carrillo 2025-05-22 20:00:52 +02:00
parent 5954e722a4
commit 1d673bd84b
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,9 @@
require("avante").setup({
provider = "copilot",
copilot = { model = "claude-3.7-sonnet" },
copilot = {
model = "claude-3.7-sonnet",
timeout = 120000,
},
-- provider = "claude",
-- claude = {
-- api_key_name = "cmd:secret-tool lookup description ANTHROPIC_API_KEY",
@ -15,7 +18,7 @@ require("avante").setup({
system_prompt = function()
local hub = require("mcphub").get_hub_instance()
return hub:get_active_servers_prompt()
return hub and hub:get_active_servers_prompt() or ""
end,
custom_tools = function()
return {

View File

@ -1,4 +1,9 @@
require("mcphub").setup({
use_bundled_binary = true,
auto_approve = true,
extensions = {
avante = {
make_slash_commands = true,
},
},
})