This commit is contained in:
xunuwu 2024-02-07 19:05:44 +01:00
commit 498f3050d5
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
145 changed files with 2964 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{
programs.wezterm = {
enable = true;
extraConfig = ''
local wezterm = require'wezterm'
local c = {}
if wezterm.config_builder then
c = wezterm.config_builder()
end
c.hide_tab_bar_if_only_one_tab = true
c.color_scheme = "GitHub Dark"
c.window_padding = { left = 10, right = 10, top = 5, bottom = 5 }
c.window_decorations = 'RESIZE'
c.window_close_confirmation = "NeverPrompt"
c.use_fancy_tab_bar = false
c.font_size = 9
c.adjust_window_size_when_changing_font_size = true
-- Keys
c.leader = { key = 'j', mods = 'CTRL', timeout_milliseconds = 1000 }
c.keys = {
{
key = 'v',
mods = 'LEADER',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 's',
mods = 'LEADER',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
key = 'q',
mods = 'LEADER',
action = wezterm.action.CloseCurrentPane { confirm = false },
},
{
key = 'f',
mods = 'LEADER',
action = wezterm.action.TogglePaneZoomState,
},
}
return c
'';
};
}