Skip to content

Commit 6c719a3

Browse files
committed
fix(statusline): Bufname now uses icon_hl as fallback
When `hl` is unset `icon_hl` will be used as the default highlight group.
1 parent 8d16b3f commit 6c719a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/bars/components/statusline.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ slC.bufname = function (buffer, _, main_config)
218218
end
219219

220220
return table.concat({
221-
utils.set_hl(config.hl),
221+
utils.set_hl(config.hl or config.icon_hl),
222222

223223
string.format("%s%s", utils.set_hl(config.corner_left_hl), config.corner_left or ""),
224224
string.format("%s%s", utils.set_hl(config.padding_left_hl), config.padding_left or ""),

0 commit comments

Comments
 (0)