feat: setting themes(wip)

This commit is contained in:
WinterEkisha committed 2026-11-18 16:44:20 -08:00
1 parent a3a9472799
commit 5c9f5eb041
1 file changed
+4 -4
+4 -4
View File
@@ -33,9 +33,9 @@
relativenumber = true; relativenumber = true;
}; };
# Define the global helper function so you can run :lua set_wezterm_theme('solid') anytime # Define the global helper function so you can run :lua setWezTheme('solid') anytime
extraConfigLua = '' extraConfigLua = ''
_G.set_wezterm_theme = function(theme) _G.setWezTheme = function(theme)
local val = theme or "" local val = theme or ""
local b64 = vim.base64.encode(val) local b64 = vim.base64.encode(val)
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64) local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64)
@@ -76,7 +76,7 @@
callback = { callback = {
__raw = '' __raw = ''
function() function()
set_wezterm_theme('nvim') setWezTheme('nvim')
end end
''; '';
}; };
@@ -88,7 +88,7 @@
callback = { callback = {
__raw = '' __raw = ''
function() function()
set_wezterm_theme("") setWezTheme("")
end end
''; '';
}; };