feat(wezterm): use single font setup

This commit is contained in:
winston 2023-06-21 23:46:11 +02:00
parent e7ec620b72
commit c7df95d112
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 4 additions and 38 deletions

View file

@ -1,37 +0,0 @@
---@type wezterm
local wezterm = require("wezterm")
local M = {}
local function get_victor(weigth)
return wezterm.font({
family = "Victor Mono",
style = "Italic",
weight = weigth,
})
end
M.apply = function(c)
c.font = wezterm.font_with_fallback({
"Berkeley Mono",
"Symbols Nerd Font",
})
c.font_rules = {
{
font = get_victor("Black"),
intensity = "Bold",
italic = true,
},
{
font = get_victor("Bold"),
intensity = "Half",
italic = true,
},
{
font = get_victor("DemiBold"),
intensity = "Normal",
italic = true,
},
}
end
return M

View file

@ -8,9 +8,12 @@ if wezterm.config_builder then
c:set_strict_mode(true)
end
require("fonts").apply(c)
require("keys").apply(c)
c.font = wezterm.font_with_fallback({
"Berkeley Mono",
"Symbols Nerd Font",
})
-- window
c.window_decorations = "RESIZE"
c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 }