wezterm: update plugin and keys config

This commit is contained in:
Gabriel Arazas 2025-02-24 18:34:21 +08:00
parent 7f81615b0a
commit 78efab2b19
2 changed files with 28 additions and 12 deletions

View File

@ -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 }) },

View File

@ -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