@@ -101,7 +101,6 @@ wez.on("format-tab-title", function(tab, _, _, conf, _, _)
101
101
}
102
102
end )
103
103
104
- -- Name of workspace
105
104
wez .on (" update-status" , function (window , pane )
106
105
local present , conf = pcall (window .effective_config , window )
107
106
if not present then
@@ -115,8 +114,10 @@ wez.on("update-status", function(window, pane)
115
114
{ Background = { Color = palette .tab_bar .background } },
116
115
}
117
116
117
+ table.insert (left_cells , { Text = string.rep (" " , options .padding .left ) })
118
+
118
119
if options .modules .workspace .enabled then
119
- local stat = " " .. options .modules .workspace .icon .. " " .. window :active_workspace () .. " "
120
+ local stat = options .modules .workspace .icon .. utilities . _space ( window :active_workspace (), options . separator . space )
120
121
local stat_fg = palette .ansi [options .modules .workspace .color ]
121
122
122
123
if options .modules .leader .enabled and window :leader_is_active () then
@@ -134,7 +135,10 @@ wez.on("update-status", function(window, pane)
134
135
goto set_left_status
135
136
end
136
137
table.insert (left_cells , { Foreground = { Color = palette .ansi [options .modules .pane .color ] } })
137
- table.insert (left_cells , { Text = options .modules .pane .icon .. " " .. utilities ._basename (process ) .. " " })
138
+ table.insert (
139
+ left_cells ,
140
+ { Text = options .modules .pane .icon .. utilities ._space (utilities ._basename (process ), options .separator .space ) }
141
+ )
138
142
end
139
143
140
144
:: set_left_status::
@@ -191,12 +195,15 @@ wez.on("update-status", function(window, pane)
191
195
table.insert (right_cells , { Foreground = { Color = palette .brights [1 ] } })
192
196
table.insert (right_cells , {
193
197
Text = utilities ._space (options .separator .right_icon , options .separator .space , nil )
194
- .. options .modules [name ].icon
195
- .. utilities ._space (options .separator .field_icon , options .separator .space , nil ),
198
+ .. options .modules [name ].icon ,
196
199
})
200
+ table.insert (right_cells , { Text = utilities ._space (options .separator .field_icon , options .separator .space , nil ) })
197
201
end
198
202
:: continue::
199
203
end
204
+ -- remove trailing separator
205
+ table.remove (right_cells , # right_cells )
206
+ table.insert (right_cells , { Text = string.rep (" " , options .padding .right ) })
200
207
201
208
window :set_right_status (wez .format (right_cells ))
202
209
end )
0 commit comments