wezterm: Refactor and format

This commit is contained in:
Marty Oehme 2023-05-23 15:47:08 +02:00
parent 7121897385
commit b8c59db4c2
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 3 additions and 4 deletions

View file

@ -5,9 +5,7 @@ local act = wezterm.action
local function setup() local function setup()
local function isViProcess(pane) local function isViProcess(pane)
local proc = pane:get_foreground_process_name() return pane:get_foreground_process_name():find('n?vim') ~= nil
if (proc:find('vim') or proc:find('nvim')) then return true end
return false
end end
local function conditionalActivatePane(window, pane, pane_direction, local function conditionalActivatePane(window, pane, pane_direction,

View file

@ -74,7 +74,8 @@ local settings = {
event = { Up = { streak = 1, button = 'Left' } }, event = { Up = { streak = 1, button = 'Left' } },
mods = 'NONE', mods = 'NONE',
action = wezterm.action action = wezterm.action
.CompleteSelectionOrOpenLinkAtMouseCursor 'ClipboardAndPrimarySelection' .CompleteSelectionOrOpenLinkAtMouseCursor
'ClipboardAndPrimarySelection'
} }
} }
} }