feat(wezterm): use single font setup
This commit is contained in:
parent
e7ec620b72
commit
c7df95d112
2 changed files with 4 additions and 38 deletions
|
@ -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
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue