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 isViProcess(pane)
local proc = pane:get_foreground_process_name()
if (proc:find('vim') or proc:find('nvim')) then return true end
return false
return pane:get_foreground_process_name():find('n?vim') ~= nil
end
local function conditionalActivatePane(window, pane, pane_direction,

View File

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