From 0778ea116a2d9b5d7c7bb36ebaab2ddefa0337d8 Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 8 Feb 2026 18:51:10 -0800 Subject: [PATCH] update --- .config/hypr/keybindings.conf | 3 + .config/mpv-modules/ModernZ | 2 +- .config/mpv/script-opts/ytdl_preload.conf | 1 - .config/mpv/scripts/ytdl-preload.lua | 2 +- .../mpv/scripts/ytdl-preload.lua##os.Linux | 2 +- .config/nvim/lua/plugins/codecompanion.lua | 16 ++-- .config/nvim/lua/plugins/mcphub.lua | 86 ------------------- 7 files changed, 14 insertions(+), 98 deletions(-) delete mode 100644 .config/mpv/script-opts/ytdl_preload.conf delete mode 100644 .config/nvim/lua/plugins/mcphub.lua diff --git a/.config/hypr/keybindings.conf b/.config/hypr/keybindings.conf index 36d0f2b..68e037a 100644 --- a/.config/hypr/keybindings.conf +++ b/.config/hypr/keybindings.conf @@ -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 diff --git a/.config/mpv-modules/ModernZ b/.config/mpv-modules/ModernZ index d917f6e..fadaf74 160000 --- a/.config/mpv-modules/ModernZ +++ b/.config/mpv-modules/ModernZ @@ -1 +1 @@ -Subproject commit d917f6e253f22fcd0369751fc740816538ad729c +Subproject commit fadaf74b08d90d656dd2d03f98f953918e3702c4 diff --git a/.config/mpv/script-opts/ytdl_preload.conf b/.config/mpv/script-opts/ytdl_preload.conf deleted file mode 100644 index da97d49..0000000 --- a/.config/mpv/script-opts/ytdl_preload.conf +++ /dev/null @@ -1 +0,0 @@ -temp=/tmp/ytdl-preload diff --git a/.config/mpv/scripts/ytdl-preload.lua b/.config/mpv/scripts/ytdl-preload.lua index 3868d34..d452cc0 120000 --- a/.config/mpv/scripts/ytdl-preload.lua +++ b/.config/mpv/scripts/ytdl-preload.lua @@ -1 +1 @@ -../submodules/ytdl-preload/ytdl-preload.lua \ No newline at end of file +ytdl-preload.lua##os.Linux \ No newline at end of file diff --git a/.config/mpv/scripts/ytdl-preload.lua##os.Linux b/.config/mpv/scripts/ytdl-preload.lua##os.Linux index 92e7454..e4e5cd2 100644 --- a/.config/mpv/scripts/ytdl-preload.lua##os.Linux +++ b/.config/mpv/scripts/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 = "", diff --git a/.config/nvim/lua/plugins/codecompanion.lua b/.config/nvim/lua/plugins/codecompanion.lua index 475ece4..b03298f 100644 --- a/.config/nvim/lua/plugins/codecompanion.lua +++ b/.config/nvim/lua/plugins/codecompanion.lua @@ -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 = { diff --git a/.config/nvim/lua/plugins/mcphub.lua b/.config/nvim/lua/plugins/mcphub.lua deleted file mode 100644 index 65f3f58..0000000 --- a/.config/nvim/lua/plugins/mcphub.lua +++ /dev/null @@ -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, -}