32 lines
898 B
Lua
32 lines
898 B
Lua
--- @type LazyPluginSpec
|
|
return {
|
|
"yetone/avante.nvim",
|
|
event = "VeryLazy",
|
|
version = false,
|
|
build = "make",
|
|
dependencies = {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
"stevearc/dressing.nvim",
|
|
"nvim-lua/plenary.nvim",
|
|
"MunifTanjim/nui.nvim",
|
|
"nvim-telescope/telescope.nvim",
|
|
"nvim-tree/nvim-web-devicons",
|
|
"zbirenbaum/copilot.lua",
|
|
"ravitemer/mcphub.nvim",
|
|
},
|
|
config = function()
|
|
require("avante").setup({
|
|
provider = "copilot",
|
|
system_prompt = function()
|
|
local hub = require("mcphub").get_hub_instance()
|
|
return hub:get_active_servers_prompt()
|
|
end,
|
|
custom_tools = function()
|
|
return {
|
|
require("mcphub.extensions.avante").mcp_tool(),
|
|
}
|
|
end,
|
|
})
|
|
end,
|
|
}
|