diff --git a/wezterm/config/keys.lua b/wezterm/config/keys.lua index 71e0ec6..adf4aaf 100644 --- a/wezterm/config/keys.lua +++ b/wezterm/config/keys.lua @@ -90,8 +90,8 @@ function module.apply_to_config(config) -- More pane-related niceties. { key = "f", mods = "LEADER", action = act.TogglePaneZoomState }, { key = "f", mods = keymod, action = act.TogglePaneZoomState }, - { key = "n", mods = "LEADER", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) }, - { key = "n", mods = keymod, action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) }, + { key = "n", mods = "LEADER", action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) }, + { key = "n", mods = keymod, action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) }, { key = "n", mods = alt_keymod, action = act.SplitVertical({ domain = "CurrentPaneDomain" }) }, { key = "d", mods = keymod, action = act.CloseCurrentPane({ confirm = false }) }, diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua index a0658d8..6f00aeb 100644 --- a/wezterm/wezterm.lua +++ b/wezterm/wezterm.lua @@ -1,21 +1,37 @@ local config = require("wezterm").config_builder() config:set_strict_mode(true) - require("config/events").apply_to_config(config) require("config/base").apply_to_config(config) require("config/keys").apply_to_config(config) require("config/appearance").apply_to_config(config) require("config/mux_server").apply_to_config(config) -local smart_splits = require("wezterm").plugin.require("https://github.com/mrjones2014/smart-splits.nvim") -smart_splits.apply_to_config(config, { - direction_keys = { 'h', 'j', 'k', 'l' }, - modifiers = { - move = 'CTRL', - resize = 'META', - }, - log_level = 'info', -}) +local wezterm = require("wezterm") + +wezterm.plugin + .require("https://github.com/mikkasendke/sessionizer.wezterm") + .apply_to_config(config) + +wezterm.plugin + .require("https://github.com/mrjones2014/smart-splits.nvim") + .apply_to_config(config, { + direction_keys = { 'h', 'j', 'k', 'l' }, + modifiers = { + move = 'CTRL', + resize = 'META', + }, + log_level = 'info', + }) + +wezterm.plugin + .require("https://github.com/yriveiro/wezterm-status") + .apply_to_config(config, { + cells = { + battery = { enabled = true }, + date = { format = "%F %M:%h" }, + mode = { enabled = true }, + }, + }) return config