nvim: Add mcphub for mcp llm agent installation
This commit is contained in:
parent
cdf48a537e
commit
bcbe527ac6
3 changed files with 27 additions and 2 deletions
|
|
@ -42,6 +42,7 @@
|
|||
"mason-lspconfig.nvim": { "branch": "main", "commit": "5477d67a5ca12b704f2a8a55a057fc79750f3dbb" },
|
||||
"mason-nvim-lint": { "branch": "main", "commit": "b579a00ee39dcd590b1023028dc8fb3d203a67b0" },
|
||||
"mason.nvim": { "branch": "main", "commit": "7f265cd6ae56cecdd0aa50c8c73fc593b0604801" },
|
||||
"mcphub.nvim": { "branch": "main", "commit": "85a7a659fc82da1429a2241ab61e9ce07b3db374" },
|
||||
"mdeval.nvim": { "branch": "master", "commit": "0e1b248db174a9659a9ab16eb8c90ff3aec55264" },
|
||||
"mini.nvim": { "branch": "main", "commit": "0420076298c4457f200c2de468f65d080597a347" },
|
||||
"molten-nvim": { "branch": "main", "commit": "a286aa914d9a154bc359131aab788b5a077a5a99" },
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
|
|||
})
|
||||
vim.api.nvim_create_autocmd({ "BufNewFile", "BufReadPre" }, {
|
||||
group = vim.api.nvim_create_augroup("PrivateJrnl", {}),
|
||||
pattern = "*.jrnl",
|
||||
pattern = { "*.jrnl", "jrnl.*" },
|
||||
desc = "Don't leak information when editing jrnl files",
|
||||
callback = private_mode,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
-- TODO: Add completion w blink, see https://codecompanion.olimorris.dev/installation.html
|
||||
{
|
||||
"olimorris/codecompanion.nvim",
|
||||
dependencies = {
|
||||
|
|
@ -33,6 +32,23 @@ return {
|
|||
{ "ibhagwan/fzf-lua", optional = true },
|
||||
"ravitemer/codecompanion-history.nvim",
|
||||
"jinzhongjia/codecompanion-gitcommit.nvim",
|
||||
|
||||
{ -- enable mcp server agent extensions
|
||||
"ravitemer/mcphub.nvim",
|
||||
build = "bundled_build.lua",
|
||||
opts = {
|
||||
use_bundled_binary = true,
|
||||
},
|
||||
cmd = "MCPHub",
|
||||
keys = {
|
||||
{
|
||||
"<leader>va",
|
||||
"<cmd>MCPHub<cr>",
|
||||
desc = "MCP Hub",
|
||||
silent = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
init = function(_)
|
||||
if require("core.util").is_available("which-key") then
|
||||
|
|
@ -95,6 +111,14 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
mcphub = {
|
||||
callback = "mcphub.extensions.codecompanion",
|
||||
opts = {
|
||||
show_results_in_chat = true,
|
||||
make_vars = true,
|
||||
make_slash_commands = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue