Skip to content

Commit 6d7915a

Browse files
committed
fix(statusline): Fixed issue with getting icons from icons.nvim
1 parent 595f135 commit 6d7915a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lua/bars/components/statusline.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ local function get_icon (ft, icon_hls)
4242
ft_icon = ft_icon .. " ";
4343
return ft_icon, ft_icon_hl;
4444
elseif package.loaded["icons"] then
45-
return package.loaded["icons"].get(ft, icon_hls);
45+
local output = package.loaded["icons"].get(ft, icon_hls);
46+
return output.icon, output.hl;
4647
end
4748

4849
return "", nil;

0 commit comments

Comments
 (0)