feat: wezterm config

This commit is contained in:
WinterEkisha committed 2026-11-18 13:37:37 -08:00
1 parent 56e7ad6de9
commit 58ec82092c
4 files changed
+95 -13

No files matched your search

+40 -2
View File
@@ -19,6 +19,7 @@
enable = true;
settings = {
filter = "classic"; # Options: classic, octagon, pro, machine
transparent_background = true;
};
};
#colorschemes.nightfox = {
@@ -32,11 +33,16 @@
relativenumber = true;
};
# --- Sets tab spacing for file types ---
autoGroups = {
WezTermUserVar = {
clear = true;
};
};
autoCmd = [
# --- Sets tab spacing for file types ---
{
event = [ "FileType" ];
pattern = [ "html" "css" "javascript" "typescript" "nix" ];
pattern = [ "html" "css" "javascript" "typescript" "nix" "lua" ];
callback = {
__raw = ''
function()
@@ -47,6 +53,38 @@
'';
};
}
{
event = [ "UIEnter" "VimResume" ];
group = "WezTermUserVar";
callback = {
__raw = ''
function()
local b64 = vim.base64.encode('true')
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'IS_NVIM', b64)
if vim.env.TMUX then
seq = string.format('\x1bPtmux;\x1b%s\x1b\\', seq)
end
pcall(vim.fn.chansend, vim.v.stderr, seq)
end
'';
};
}
{
event = [ "VimLeavePre" "VimSuspend" ];
group = "WezTermUserVar";
callback = {
__raw = ''
function()
local b64 = vim.base64.encode('false')
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'IS_NVIM', b64)
if vim.env.TMUX then
seq = string.format('\x1bPtmux;\x1b%s\x1b\\', seq)
end
pcall(vim.fn.chansend, vim.v.stderr, seq)
end
'';
};
}
];
plugins.cmp = {