mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-04-19 12:19:10 +00:00
wezterm: update plugin and keys config
This commit is contained in:
parent
7f81615b0a
commit
78efab2b19
@ -90,8 +90,8 @@ function module.apply_to_config(config)
|
|||||||
-- More pane-related niceties.
|
-- More pane-related niceties.
|
||||||
{ key = "f", mods = "LEADER", action = act.TogglePaneZoomState },
|
{ key = "f", mods = "LEADER", action = act.TogglePaneZoomState },
|
||||||
{ key = "f", mods = keymod, action = act.TogglePaneZoomState },
|
{ key = "f", mods = keymod, action = act.TogglePaneZoomState },
|
||||||
{ key = "n", mods = "LEADER", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
{ key = "n", mods = "LEADER", action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) },
|
||||||
{ key = "n", mods = keymod, action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
{ key = "n", mods = keymod, action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) },
|
||||||
{ key = "n", mods = alt_keymod, action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
{ key = "n", mods = alt_keymod, action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
||||||
{ key = "d", mods = keymod, action = act.CloseCurrentPane({ confirm = false }) },
|
{ key = "d", mods = keymod, action = act.CloseCurrentPane({ confirm = false }) },
|
||||||
|
|
||||||
|
@ -1,21 +1,37 @@
|
|||||||
local config = require("wezterm").config_builder()
|
local config = require("wezterm").config_builder()
|
||||||
config:set_strict_mode(true)
|
config:set_strict_mode(true)
|
||||||
|
|
||||||
|
|
||||||
require("config/events").apply_to_config(config)
|
require("config/events").apply_to_config(config)
|
||||||
require("config/base").apply_to_config(config)
|
require("config/base").apply_to_config(config)
|
||||||
require("config/keys").apply_to_config(config)
|
require("config/keys").apply_to_config(config)
|
||||||
require("config/appearance").apply_to_config(config)
|
require("config/appearance").apply_to_config(config)
|
||||||
require("config/mux_server").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")
|
local wezterm = require("wezterm")
|
||||||
smart_splits.apply_to_config(config, {
|
|
||||||
direction_keys = { 'h', 'j', 'k', 'l' },
|
wezterm.plugin
|
||||||
modifiers = {
|
.require("https://github.com/mikkasendke/sessionizer.wezterm")
|
||||||
move = 'CTRL',
|
.apply_to_config(config)
|
||||||
resize = 'META',
|
|
||||||
},
|
wezterm.plugin
|
||||||
log_level = 'info',
|
.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
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user