Skip to content

Commit b4b1f05

Browse files
committed
fix: icon padding not applied to dirs (closes #2544)
1 parent b3c8706 commit b4b1f05

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/fzf-lua/devicons.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ M.get_devicon = function(filepath, extensionOverride)
479479

480480
if path.ends_with_separator(filepath) then
481481
-- path is directory
482-
return STATE.dir_icon.icon, validate_hl(STATE.dir_icon.color)
482+
return
483+
STATE.dir_icon.icon .. (type(STATE.icon_padding) == "string" and STATE.icon_padding or ""),
484+
validate_hl(STATE.dir_icon.color)
483485
end
484486

485487
local icon, color

0 commit comments

Comments
 (0)