From f6472016040a8da5b3b9740addf2bce003163f57 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 19 Mar 2025 21:03:27 -0400 Subject: [PATCH] fix(smart-splits): fix inconsistencies in smart-splits plugin --- plugins/smart_splits.lua | 2 +- wezterm.lua | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/plugins/smart_splits.lua b/plugins/smart_splits.lua index 15fc432..54401a5 100644 --- a/plugins/smart_splits.lua +++ b/plugins/smart_splits.lua @@ -16,7 +16,7 @@ SMART_SPLITS.apply_to_config(CONFIG, { }, -- modifier keys to combine with direction_keys modifiers = { - move = "CTRL|SHIFT", -- modifier to use for pane movement + move = "CTRL", -- modifier to use for pane movement resize = "ALT", -- modifier to use for pane resize }, }) diff --git a/wezterm.lua b/wezterm.lua index 132d0f2..2204f77 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -38,10 +38,27 @@ require("encryption") -- Load Menus CONFIG.launch_menu = require("menus") +-- Load Smart-Splits plugin +SMART_SPLITS = WEZTERM.plugin.require("https://github.com/mrjones2014/smart-splits.nvim") + +-- Apply Smart-Splits configuration +SMART_SPLITS.apply_to_config(CONFIG, { + -- directional keys to use in order of: left, down, up, right + direction_keys = { + move = { "h", "j", "k", "l" }, -- Move with CTRL+H, CTRL+J, CTRL+K, CTRL+L + resize = { "h", "j", "k", "l" }, -- Resize with ALT+h, ALT+j, ALT+k, ALT+l + }, + -- modifier keys to combine with direction_keys + modifiers = { + move = "CTRL", -- modifier to use for pane movement + resize = "ALT", -- modifier to use for pane resize + }, +}) + --------- Update Plugins ---------- ---Running this may cause slowdowns ----------------------------------- --- WEZTERM.plugin.update_all() ---- +--WEZTERM.plugin.update_all() ---- -- print(WEZTERM.plugin.list()) -----------------------------------