We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76db7ed commit 347e1ebCopy full SHA for 347e1eb
lua/nvim-tree/renderer/components/icons.lua
@@ -65,7 +65,12 @@ local function get_file_icon_webdev(fname, extension)
65
-- If there are more extensions to the file, try to grab the icon for them recursively
66
return get_file_icon_webdev(fname, string.match(extension, "%.(.*)"))
67
else
68
- return get_file_icon_default()
+ local devicons_default = M.devicons.get_default_icon()
69
+ if devicons_default and type(devicons_default.icon) == "string" and type(devicons_default.name) == "string" then
70
+ return devicons_default.icon, "DevIcon" .. devicons_default.name
71
+ else
72
+ return get_file_icon_default()
73
+ end
74
end
75
76
0 commit comments