diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-12 16:38:59 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-12 16:38:59 +0900 |
| commit | 399e1f14edc9ba3ff98f444e06c7419bc49dcbc4 (patch) | |
| tree | cc6f014cebc774abe2c4f7b97b339bb086913d08 /ar | |
| parent | a21dfb673613036cfa2881d587fd33f2fae6a8af (diff) | |
Diffstat (limited to 'ar')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/urlview.lua | 19 | ||||
| -rw-r--r-- | ar/.config/tmux/tmux.conf | 12 |
2 files changed, 29 insertions, 2 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/urlview.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/urlview.lua index 69e7762..eda7f03 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/urlview.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/urlview.lua @@ -90,7 +90,24 @@ return { -- Command or method to open links with -- Options: "netrw", "system" (default OS browser), "clipboard"; or "firefox", "chromium" etc. -- By default, this is "netrw", or "system" if netrw is disabled - default_action = "system", + -- Use custom function to open URLs asynchronously (prevents blocking) + default_action = function(url) + -- Use vim.ui.open if available (Neovim 0.10+) + if vim.ui.open then + vim.ui.open(url) + else + -- Fallback: detect OS and use appropriate command + local cmd + if vim.fn.has("mac") == 1 then + cmd = "open" + elseif vim.fn.has("win32") == 1 then + cmd = "start" + else + cmd = "xdg-open" + end + vim.fn.jobstart({ cmd, url }, { detach = true }) + end + end, -- Set the register to use when yanking -- Default: + (system clipboard) default_register = "+", diff --git a/ar/.config/tmux/tmux.conf b/ar/.config/tmux/tmux.conf index f2220a6..d798048 100644 --- a/ar/.config/tmux/tmux.conf +++ b/ar/.config/tmux/tmux.conf @@ -10,6 +10,8 @@ if 'test ! -d "${TMUX_PLUGIN_MANAGER_PATH}/tpm"' { ### --- Settings --- ### # general +set -as terminal-features 'st*:extkeys' +set -as terminal-features 'tmux*:extkeys' set -as terminal-features 'xterm*:extkeys' set -g base-index 1 set -g pane-base-index 1 @@ -32,10 +34,14 @@ set -g monitor-activity on set -g visual-activity off # color -set -g default-terminal "xterm-256color" +set -g default-terminal "tmux-256color" # set -g default-terminal 'screen-256color' set -ga terminal-overrides ',xterm-256color:Tc' +set -ga terminal-overrides ',st-256color:Tc' +set -ga terminal-overrides ',tmux-256color:Tc' set -sa terminal-features ',xterm-256color:RGB' +set -sa terminal-features ',st-256color:RGB' +set -sa terminal-features ',tmux-256color:RGB' # status set -g status-interval 1 @@ -179,6 +185,10 @@ set -g @fingers-pattern-1 'git rebase --(abort|continue)' set -g @fingers-pattern-2 "(\\+[0-9]{1,3}\\)?)?\\s?(\\s[0-9]{2,3}\\s[0-9]{3,4}\\s[0-9]{4}|\\-?[0-9]{2,3}\\-[0-9]{3,4}\\-[0-9]{4})" set -g @fingers-main-action ":open:" set -g @fingers-ctrl-action "xargs -I {} tmux run-shell 'cd #{pane_current_path}; ton {}'" +set -g @fingers-hint-style "fg=red,bold" +set -g @fingers-highlight-style "fg=yellow,bold,reverse" +set -g @fingers-selected-hint-style "fg=green,bold" +set -g @fingers-selected-highlight-style "fg=blue,bold,reverse" # navigation set -g @tmux-nvim-navigation true |
