wezterm: adapt for breaking change in hm (#1182)

Link: https://github.com/danth/stylix/pull/1182

Reviewed-by: awwpotato <awwpotato@voidq.com>
Tested-by: https://github.com/NovaViper
This commit is contained in:
Adam M. Szalkowski 2025-04-29 17:37:43 +02:00 committed by GitHub
parent 594336f425
commit de0870f075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,12 +77,12 @@
-- Generated by Stylix
local wezterm = require("wezterm")
wezterm.add_to_config_reload_watch_list(wezterm.config_dir)
local function stylix_wrapped_config()
${config.programs.wezterm.extraConfig}
-- Allow working with both the current release and the nightly
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
local stylix_base_config = wezterm.config_builder()
local stylix_user_config = stylix_wrapped_config()
stylix_base_config = {
local stylix_base_config = {
color_scheme = "stylix",
font = wezterm.font_with_fallback {
"${fonts.monospace.name}",
@ -136,10 +136,19 @@
command_palette_fg_color = "${base05}",
command_palette_font_size = ${builtins.toString fonts.sizes.popups},
}
for key, value in pairs(stylix_user_config) do
stylix_base_config[key] = value
for key, value in pairs(stylix_base_config) do
config[key] = value
end
return stylix_base_config
local function stylix_wrapped_config()
${config.programs.wezterm.extraConfig}
end
local stylix_user_config = stylix_wrapped_config()
if stylix_user_config then
for key, value in pairs(stylix_user_config) do
config[key] = value
end
end
return config
'';
};
}