28 lines
702 B
Lua
28 lines
702 B
Lua
--- @type LazyPluginSpec
|
|
return {
|
|
"ravitemer/mcphub.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
cmd = "MCPHub",
|
|
-- build = "npm install -g mcp-hub@latest",
|
|
build = "bundled_build.lua",
|
|
init = function()
|
|
local mcphublocation = vim.fn.expand("~/.config/mcphub")
|
|
|
|
if vim.fn.isdirectory(mcphublocation) == 0 then
|
|
vim.fn.system("mkdir -p " .. mcphublocation)
|
|
end
|
|
end,
|
|
config = function()
|
|
require("mcphub").setup({
|
|
extensions = {
|
|
avante = {
|
|
make_slash_commands = true,
|
|
},
|
|
},
|
|
use_bundled_binary = true,
|
|
})
|
|
end,
|
|
}
|