new wezterm tabs

This commit is contained in:
William 2024-09-20 19:49:55 -03:00
parent aea4643c4a
commit ab077f659c
2 changed files with 14 additions and 3 deletions

View file

@ -21,7 +21,6 @@
insert = "bar";
select = "underline";
};
mouse = false;
soft-wrap.enable = true;
auto-format = true;
indent-guides.render = true;

View file

@ -17,9 +17,21 @@
end
end
wezterm.on('format-tab-title', function(tab, tabs, panes, config, hover, max_width)
-- Tab indices are 0-based, so add 1
local left_sep = ""
local right_sep = ""
-- Define the tab title format using the Powerline separator
local tab_index = tab.tab_index + 1
return " :" .. tab_index .. ": "
return {
{ Background = { Color = "${config.lib.stylix.colors.withHashtag.base01}" } },
{ Foreground = { Color = tab.is_active and "${config.lib.stylix.colors.withHashtag.base04}" or "${config.lib.stylix.colors.withHashtag.base01}" } },
{ Text = left_sep },
{ Background = { Color = tab.is_active and "${config.lib.stylix.colors.withHashtag.base04}" or "${config.lib.stylix.colors.withHashtag.base01}" } },
{ Foreground = { Color = "${config.lib.stylix.colors.withHashtag.base05}" } },
{ Text = " " .. tab_index .. " " },
{ Background = { Color = "${config.lib.stylix.colors.withHashtag.base01}" } },
{ Foreground = { Color = tab.is_active and "${config.lib.stylix.colors.withHashtag.base04}" or "${config.lib.stylix.colors.withHashtag.base01}" } },
{ Text = right_sep },
}
end)
wezterm.on('update-right-status', function(window, pane)
-- Each element holds the text for a cell in a "powerline" style << fade