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:
parent
594336f425
commit
de0870f075
1 changed files with 17 additions and 8 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue