♻️ refactor(config): streamline plugins and LSP configurations for improved maintainability

This commit is contained in:
sankalp committed 2025-07-25 13:24:40 +05:45
1 parent 14627f757a
commit f7b8d3c6e9
21 files changed
+171 -1281

No files matched your search

+2 -19
View File
@@ -158,26 +158,9 @@ avante.setup({
debounce = 600,
throttle = 600,
},
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,
disabled_tools = {
'list_files',
'search_files',
'read_file',
'create_file',
'rename_file',
'delete_file',
'create_dir',
'rename_dir',
'delete_dir',
'bash',
'replace_in_file',
'web_search',
},
slash_commands = {},
})
-41
View File
@@ -1,41 +0,0 @@
local mcphub = require('mcphub')
mcphub.setup({
port = 37373,
config = vim.fn.expand('~/.config/mcphub/servers.json'),
native_servers = {},
auto_approve = false,
auto_toggle_mcp_servers = true,
extensions = {
avante = {
enabled = true,
make_slash_commands = true,
},
},
ui = {
window = {
width = 0.8,
height = 0.8,
relative = 'editor',
zindex = 50,
border = 'rounded',
},
wo = {},
},
on_ready = function(hub) end,
on_error = function(err) end,
use_bundled_binary = true,
-- server_url = nil, -- defaults to `http://localhost:port`
shutdown_delay = 600000, -- 10 minutes
log = {
level = vim.log.levels.INFO,
to_file = true,
file_path = vim.fn.stdpath('state') .. '/mcphub.log',
prefix = 'MCPHub',
},
})