feat(wezterm): Better qwerty switch

This commit is contained in:
js0ny 2025-04-07 08:46:53 +01:00
parent c86b0606d3
commit 68fee530a1
6 changed files with 340 additions and 269 deletions

View file

@ -0,0 +1,45 @@
local M = {}
local wezterm = require("wezterm")
local act = wezterm.action
M.qwerty = {
{
key = "j",
mods = "LEADER",
action = act.ActivatePaneDirection("Down"),
},
{
key = "k",
mods = "LEADER",
action = act.ActivatePaneDirection("Up"),
},
{
key = "l",
mods = "LEADER",
action = act.ActivatePaneDirection("Right"),
},
{
key = "J",
mods = "LEADER",
action = act.AdjustPaneSize({ "Down", 5 }),
},
{
key = "K",
mods = "LEADER",
action = act.AdjustPaneSize({ "Up", 5 }),
},
{
key = "L",
mods = "LEADER",
action = act.AdjustPaneSize({ "Right", 5 }),
},
}
local leader_common = require("keymaps.leaders").common
for _, v in ipairs(leader_common) do
table.insert(M.leader, v)
end
return M