feat: setting themes(wip)
This commit is contained in:
1 parent
a3a9472799
commit
5c9f5eb041
1 file changed
+4
-4
@@ -33,9 +33,9 @@
|
||||
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 = ''
|
||||
_G.set_wezterm_theme = function(theme)
|
||||
_G.setWezTheme = function(theme)
|
||||
local val = theme or ""
|
||||
local b64 = vim.base64.encode(val)
|
||||
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64)
|
||||
@@ -76,7 +76,7 @@
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
set_wezterm_theme('nvim')
|
||||
setWezTheme('nvim')
|
||||
end
|
||||
'';
|
||||
};
|
||||
@@ -88,7 +88,7 @@
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
set_wezterm_theme("")
|
||||
setWezTheme("")
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user