mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-27 12:22:43 -08:00
update
This commit is contained in:
@@ -152,3 +152,6 @@ bind = $mainMod, a, exec, ~/.config/rofi/scripts/rofi-anki-script.sh
|
||||
bindl = , mouse:275, exec, xdotool key alt+w # top mouse to texthooker
|
||||
bindl = , mouse:276, exec, xdotool key alt+grave # bottom mouse to overlay
|
||||
bind = ALT, g, exec, /opt/mpv-yomitan/mpv-yomitan.AppImage --toggle
|
||||
|
||||
# F5
|
||||
bind = ,code:71, exec, ~/projects/scripts/whisper_record_transcribe.py --mode toggle --output type
|
||||
|
||||
Submodule .config/mpv-modules/ModernZ updated: d917f6e253...fadaf74b08
@@ -1 +0,0 @@
|
||||
temp=/tmp/ytdl-preload
|
||||
@@ -1 +1 @@
|
||||
../submodules/ytdl-preload/ytdl-preload.lua
|
||||
ytdl-preload.lua##os.Linux
|
||||
@@ -17,7 +17,7 @@ local utils = require 'mp.utils'
|
||||
|
||||
local options = require 'mp.options'
|
||||
local opts = {
|
||||
temp = "R:\\ytdl",
|
||||
temp = "/tmp/ytdl-preload",
|
||||
ytdl_opt1 = "",
|
||||
ytdl_opt2 = "",
|
||||
ytdl_opt3 = "",
|
||||
|
||||
@@ -300,14 +300,14 @@ return {
|
||||
-- log_level = "TRACE",
|
||||
},
|
||||
extensions = {
|
||||
mcphub = {
|
||||
callback = "mcphub.extensions.codecompanion",
|
||||
opts = {
|
||||
show_result_in_chat = true, -- Show the mcp tool result in the chat buffer
|
||||
make_vars = true, -- make chat #variables from MCP server resources
|
||||
make_slash_commands = true, -- make /slash_commands from MCP server prompts
|
||||
},
|
||||
},
|
||||
-- mcphub = {
|
||||
-- callback = "mcphub.extensions.codecompanion",
|
||||
-- opts = {
|
||||
-- show_result_in_chat = true, -- Show the mcp tool result in the chat buffer
|
||||
-- make_vars = true, -- make chat #variables from MCP server resources
|
||||
-- make_slash_commands = true, -- make /slash_commands from MCP server prompts
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
memory = {
|
||||
opts = {
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
return {
|
||||
"ravitemer/mcphub.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
build = "npm install -g mcp-hub@latest", -- Installs `mcp-hub` node binary globally
|
||||
config = function()
|
||||
require("mcphub").setup({
|
||||
--- `mcp-hub` binary related options-------------------
|
||||
config = vim.fn.expand("~/.config/mcphub/servers.json"), -- Absolute path to MCP Servers config file (will create if not exists)
|
||||
port = 37373, -- The port `mcp-hub` server listens to
|
||||
shutdown_delay = 5 * 60 * 000, -- Delay in ms before shutting down the server when last instance closes (default: 5 minutes)
|
||||
use_bundled_binary = false, -- Use local `mcp-hub` binary (set this to true when using build = "bundled_build.lua")
|
||||
mcp_request_timeout = 60000, --Max time allowed for a MCP tool or resource to execute in milliseconds, set longer for long running tasks
|
||||
global_env = {}, -- Global environment variables available to all MCP servers (can be a table or a function returning a table)
|
||||
workspace = {
|
||||
enabled = true, -- Enable project-local configuration files
|
||||
look_for = { ".mcphub/servers.json", ".vscode/mcp.json", ".cursor/mcp.json" }, -- Files to look for when detecting project boundaries (VS Code format supported)
|
||||
reload_on_dir_changed = true, -- Automatically switch hubs on DirChanged event
|
||||
port_range = { min = 40000, max = 41000 }, -- Port range for generating unique workspace ports
|
||||
get_port = nil, -- Optional function returning custom port number. Called when generating ports to allow custom port assignment logic
|
||||
},
|
||||
|
||||
---Chat-plugin related options-----------------
|
||||
auto_approve = false, -- Auto approve mcp tool calls
|
||||
auto_toggle_mcp_servers = true, -- Let LLMs start and stop MCP servers automatically
|
||||
extensions = {
|
||||
avante = {
|
||||
make_slash_commands = true, -- make /slash commands from MCP server prompts
|
||||
},
|
||||
},
|
||||
|
||||
--- Plugin specific options-------------------
|
||||
native_servers = {}, -- add your custom lua native servers here
|
||||
builtin_tools = {
|
||||
edit_file = {
|
||||
parser = {
|
||||
track_issues = true,
|
||||
extract_inline_content = true,
|
||||
},
|
||||
locator = {
|
||||
fuzzy_threshold = 0.8,
|
||||
enable_fuzzy_matching = true,
|
||||
},
|
||||
ui = {
|
||||
go_to_origin_on_complete = true,
|
||||
keybindings = {
|
||||
accept = ".",
|
||||
reject = ",",
|
||||
next = "n",
|
||||
prev = "p",
|
||||
accept_all = "ga",
|
||||
reject_all = "gr",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
ui = {
|
||||
window = {
|
||||
width = 0.8, -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
|
||||
height = 0.8, -- 0-1 (ratio); "50%" (percentage); 50 (raw number)
|
||||
align = "center", -- "center", "top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"
|
||||
relative = "editor",
|
||||
zindex = 50,
|
||||
border = "rounded", -- "none", "single", "double", "rounded", "solid", "shadow"
|
||||
},
|
||||
wo = { -- window-scoped options (vim.wo)
|
||||
winhl = "Normal:MCPHubNormal,FloatBorder:MCPHubBorder",
|
||||
},
|
||||
},
|
||||
json_decode = nil, -- Custom JSON parser function (e.g., require('json5').parse for JSON5 support)
|
||||
on_ready = function(hub)
|
||||
-- Called when hub is ready
|
||||
end,
|
||||
on_error = function(err)
|
||||
-- Called on errors
|
||||
end,
|
||||
log = {
|
||||
level = vim.log.levels.WARN,
|
||||
to_file = false,
|
||||
file_path = nil,
|
||||
prefix = "MCPHub",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user