You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
986 B
Lua

local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
config.enable_scroll_bar = true
config.font = wezterm.font_with_fallback {
'Fira Code',
'FiraCode NF',
'FiraMono',
'Jetbrains Mono',
}
config.font_size = 10
config.color_scheme = 'Dracula'
-- keybinds, mostly inspired by konsole
config.keys = {
{
key = 't',
mods = 'CTRL|SHIFT',
action = act.SpawnTab 'CurrentPaneDomain',
},
{
key = 'w',
mods = 'CTRL',
action = act.CloseCurrentTab { confirm = true }
},
{
key = 'RightArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(1)
},
{
key = 'LeftArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(-1)
},
{
key = 'w',
mods = 'CTRL|SHIFT',
action = act.ActivateTabRelative(-1)
}
}
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
-- Windows specific configuration
config.default_prog = { 'nu' }
else
-- Linux specific configuration
end
return config