mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-01 20:59:26 +00:00
[neovim] Add MCPHub integration
Enhance snacks plugin configuration by adding: - MCPHub integration with dedicated menu entry - Explorer configuration for picker with hidden and ignored files enabled
This commit is contained in:
@ -9,4 +9,31 @@ require("avante").setup({
|
||||
provider = "tavily",
|
||||
},
|
||||
hints = { enabled = false },
|
||||
behaviour = {
|
||||
enable_claude_text_editor_tool_mode = true,
|
||||
},
|
||||
|
||||
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,
|
||||
|
||||
-- using the MCP server
|
||||
disabled_tools = {
|
||||
"list_files",
|
||||
"search_files",
|
||||
"read_file",
|
||||
"create_file",
|
||||
"rename_file",
|
||||
"delete_file",
|
||||
"create_dir",
|
||||
"rename_dir",
|
||||
"delete_dir",
|
||||
"bash",
|
||||
},
|
||||
})
|
||||
|
@ -1,7 +1,7 @@
|
||||
require("blink.cmp").setup({
|
||||
-- disable completion for certain filetypes
|
||||
enabled = function()
|
||||
return not vim.tbl_contains({ "sagarename" }, vim.bo.filetype)
|
||||
return not vim.tbl_contains({ "sagarename", "DressingIngput" }, vim.bo.filetype)
|
||||
and vim.bo.buftype ~= "prompt"
|
||||
and vim.b.completion ~= false
|
||||
end,
|
||||
@ -12,7 +12,7 @@ require("blink.cmp").setup({
|
||||
completion = {
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
documentation = {
|
||||
@ -36,7 +36,11 @@ require("blink.cmp").setup({
|
||||
},
|
||||
},
|
||||
},
|
||||
signature = { window = { border = "single" } },
|
||||
signature = {
|
||||
window = {
|
||||
border = "single",
|
||||
},
|
||||
},
|
||||
sources = {
|
||||
default = { "lsp", "path", "buffer", "copilot" },
|
||||
providers = {
|
||||
|
@ -1,6 +1,7 @@
|
||||
require("plugins.snacks")
|
||||
require("plugins.blink")
|
||||
require("plugins.copilot")
|
||||
require("plugins.mcphub")
|
||||
require("plugins.avante")
|
||||
require("plugins.telescope")
|
||||
require("plugins.mini-comment")
|
||||
|
@ -119,6 +119,9 @@ require("lualine").setup({
|
||||
cond = require("noice").api.statusline.mode.has,
|
||||
color = { fg = "#ff9e64" },
|
||||
},
|
||||
{
|
||||
require("mcphub.extensions.lualine"),
|
||||
},
|
||||
{
|
||||
require("noice").api.status.search.get,
|
||||
cond = require("noice").api.status.search.has,
|
||||
|
4
.config/nvim/lua/plugins/mcphub.lua
Normal file
4
.config/nvim/lua/plugins/mcphub.lua
Normal file
@ -0,0 +1,4 @@
|
||||
require("mcphub").setup({
|
||||
use_bundled_binary = true,
|
||||
auto_approve = true,
|
||||
})
|
@ -2,6 +2,14 @@ require("snacks").setup({
|
||||
animate = {},
|
||||
bigfile = {},
|
||||
explorer = {},
|
||||
picker = {
|
||||
sources = {
|
||||
explorer = {
|
||||
hidden = true,
|
||||
ignored = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
indent = {
|
||||
indent = { char = "▏" },
|
||||
scope = { char = "▏" },
|
||||
@ -33,6 +41,7 @@ require("snacks").setup({
|
||||
key = "l",
|
||||
indent = 2,
|
||||
},
|
||||
{ icon = "", desc = "MCPHub", action = ":MCPHub", key = "h", indent = 2 },
|
||||
{ icon = "", desc = "Mason", action = ":Mason", key = "m", indent = 2 },
|
||||
{ icon = "", desc = "Tree-sitter", action = ":TSUpdate", key = "t", indent = 2, padding = 2 },
|
||||
|
||||
|
Reference in New Issue
Block a user