Skip to content

Commit

Permalink
chore(wezterm) simplify tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
miszo committed Oct 12, 2024
1 parent 3461fe5 commit e3c732a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions home/dot_config/exact_wezterm/exact_config/tabs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,10 @@ function M.setup(config)
break
end
end
local is_last = tab_idx == #tabs
local arrow = (tab.is_active or is_last) and M.right_arrow_thick or M.right_arrow_thin
local arrow_bg = inactive_bg
local arrow_fg = colors.tab_bar.inactive_tab_edge

if is_last then
arrow_fg = tab.is_active and active_bg or inactive_bg
arrow_bg = colors.tab_bar.background
elseif tab.is_active then
if tab.is_active then
arrow_bg = inactive_bg
arrow_fg = active_bg
else
Expand All @@ -186,7 +181,7 @@ function M.setup(config)
ret[#ret + 1] = { Text = title }
ret[#ret + 1] = { Foreground = { Color = arrow_fg } }
ret[#ret + 1] = { Background = { Color = arrow_bg } }
ret[#ret + 1] = { Text = arrow }
ret[#ret + 1] = { Text = M.right_arrow_thick }
return ret
end)

Expand Down

0 comments on commit e3c732a

Please sign in to comment.