From b8c59db4c23aa6397643c6fb3a5a2c20b69ad288 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 23 May 2023 15:47:08 +0200 Subject: [PATCH] wezterm: Refactor and format --- terminal/.config/wezterm/events.lua | 4 +--- terminal/.config/wezterm/wezterm.lua | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/terminal/.config/wezterm/events.lua b/terminal/.config/wezterm/events.lua index c486f1c..4b64134 100644 --- a/terminal/.config/wezterm/events.lua +++ b/terminal/.config/wezterm/events.lua @@ -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, diff --git a/terminal/.config/wezterm/wezterm.lua b/terminal/.config/wezterm/wezterm.lua index fc9fb24..6ab66c5 100644 --- a/terminal/.config/wezterm/wezterm.lua +++ b/terminal/.config/wezterm/wezterm.lua @@ -74,7 +74,8 @@ local settings = { event = { Up = { streak = 1, button = 'Left' } }, mods = 'NONE', action = wezterm.action - .CompleteSelectionOrOpenLinkAtMouseCursor 'ClipboardAndPrimarySelection' + .CompleteSelectionOrOpenLinkAtMouseCursor + 'ClipboardAndPrimarySelection' } } }