chore(term): add the wezterm config

I have been using this for quite a while now, this only adds the config
to the repo I have not yet got round to creating a configz module.
This commit is contained in:
Ade Attwood 2023-11-25 20:50:19 +00:00
parent 7e7429a70d
commit 321ec9b37d

View file

@ -0,0 +1,53 @@
local wezterm = require "wezterm"
return {
-- Use a sexy terminal font with ligatures.
--font = wezterm.font("Liga SFMono Nerd Font"),
font = wezterm.font {
family = "Monaspace Neon",
-- Enable all the ligatures except for SS04 and SS07 groups. I mainly want
-- this form arrows and equals. I have got quite used to using them.
--
-- SS04 is /> and make JSX look a bit odd
-- SS07 is /* and makes comments look a bit odd
harfbuzz_features = {
"calt=1",
"clig=1",
"liga=1",
"ss01=1",
"ss02=1",
"ss03=1",
"ss05=1",
"ss06=1",
"ss08=1",
"CALT=1",
},
},
-- Give the font some more line height, just makes thinks look a bit nicer
line_height = 1.2,
-- Who wants their music interrupted every time there is no tab completion
-- available in the shell, Who wants their music interrupted evert time there
-- is no tab completion available in the shell
audible_bell = "Disabled",
-- Have a really clean UI when there is only one tab open
hide_tab_bar_if_only_one_tab = true,
-- Disabled all the padding, this makes vim look a lot nicer when all the
-- window bars go to the edges of the terminal
window_padding = { left = 0, right = 0, top = 0, bottom = 0 },
keys = {
-- Bind <CTRL-Backspace> to <CTRL-w> to `werase` in bash. This is to keep
-- the terminal binding the same to delete a word. The default <CTRL-w> has
-- the unfortunate conflicting key biding with close tab in chrome. Moving
-- muscle memory away from <CTRL-w> will be a game changer for me.
{
mods = "CTRL",
key = "Backspace",
action = wezterm.action.SendKey { mods = "CTRL", key = "w" },
},
},
}