Dotfiles/site-modules/core/files/wezterm.lua
Ade Attwood 0bc3b77bd8 fix(term): disable warning about missing glyphs in wezterm
In some of the github fonts there are some glyphs now supported, they
are mainly getting used as icons in the vim completion ui.

Now we are not getting any system messages for this it has become quite
annoying.
2023-12-27 11:19:05 +00:00

55 lines
1.7 KiB
Lua

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 },
warn_about_missing_glyphs = false,
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" },
},
},
}