wezterm: Refactor and format
This commit is contained in:
parent
7121897385
commit
b8c59db4c2
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -74,7 +74,8 @@ local settings = {
|
|||
event = { Up = { streak = 1, button = 'Left' } },
|
||||
mods = 'NONE',
|
||||
action = wezterm.action
|
||||
.CompleteSelectionOrOpenLinkAtMouseCursor 'ClipboardAndPrimarySelection'
|
||||
.CompleteSelectionOrOpenLinkAtMouseCursor
|
||||
'ClipboardAndPrimarySelection'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue