From 321ec9b37dea06283bc9a71954e80ebfab410bc7 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 25 Nov 2023 20:50:19 +0000 Subject: [PATCH] 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. --- site-modules/core/files/wezterm.lua | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 site-modules/core/files/wezterm.lua diff --git a/site-modules/core/files/wezterm.lua b/site-modules/core/files/wezterm.lua new file mode 100644 index 0000000..cedf5f2 --- /dev/null +++ b/site-modules/core/files/wezterm.lua @@ -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 to to `werase` in bash. This is to keep + -- the terminal binding the same to delete a word. The default has + -- the unfortunate conflicting key biding with close tab in chrome. Moving + -- muscle memory away from will be a game changer for me. + { + mods = "CTRL", + key = "Backspace", + action = wezterm.action.SendKey { mods = "CTRL", key = "w" }, + }, + }, +}