Wezterm config_builder

This commit is contained in:
Anthony Cicchetti 2023-03-23 09:21:25 -04:00
parent 3cdbe48382
commit 9e7bffd58d

View file

@ -1,10 +1,17 @@
local wezterm = require 'wezterm'; local wezterm = require 'wezterm';
return { -- Allow working with both the current release and the nightly
font = wezterm.font_with_fallback({ local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.font = wezterm.font_with_fallback({
{family="Iosevka Custom", weight="Medium"}, {family="Iosevka Custom", weight="Medium"},
}), })
font_rules = {
config.font_rules = {
{ {
italic = true, italic = true,
font = wezterm.font_with_fallback({ font = wezterm.font_with_fallback({
@ -13,16 +20,18 @@ return {
} }
), ),
}, },
}, }
font_size = 15.0,
config.font_size = 15.0
-- wayland? -- wayland?
enable_wayland = true, config.enable_wayland = true
-- TERM name -- TERM name
term = "xterm-256color", config.term = "xterm-256color"
-- Color Scheme(s) -- Color Scheme(s)
color_scheme = "Hopscotch.256", -- config.color_scheme = "Hopscotch.256"
color_schemes = { config.color_scheme = "Everblush"
config.color_schemes = {
["Corvine"] = { ["Corvine"] = {
background = "#262626", background = "#262626",
foreground = "#c6c6c6", foreground = "#c6c6c6",
@ -42,9 +51,10 @@ return {
ansi = {"#1b2b34", "#ec5f67", "#99c794", "#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#c0c5ce"}, ansi = {"#1b2b34", "#ec5f67", "#99c794", "#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#c0c5ce"},
brights = {"#65737e", "#ec5f67", "#99c794" ,"#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#d8dee9"} brights = {"#65737e", "#ec5f67", "#99c794" ,"#fac863", "#6699cc", "#c594c5", "#5fb3b3", "#d8dee9"}
}, },
}, }
-- Tab Bar -- Tab Bar
enable_tab_bar = true, config.enable_tab_bar = true
hide_tab_bar_if_only_one_tab = true, config.hide_tab_bar_if_only_one_tab = true
}
return config