mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix(icons): improve fallback for multi-part file extensions (#233)
This commit is contained in:
parent
bb2c63ee53
commit
cef01dee8b
@ -119,7 +119,12 @@ function EntryMaker:items(entry, workspace, workspace_tag, formatter)
|
||||
end
|
||||
if self.web_devicons.is_enabled then
|
||||
local basename = utils.path_tail(entry.name)
|
||||
table.insert(items, { self.web_devicons:get_icon(basename, utils.file_extension(basename), { default = true }) })
|
||||
local icon, icon_highlight =
|
||||
self.web_devicons:get_icon(basename, utils.file_extension(basename), { default = false })
|
||||
if not icon then
|
||||
icon, icon_highlight = self.web_devicons:get_icon(basename, nil, { default = true })
|
||||
end
|
||||
table.insert(items, { icon, icon_highlight })
|
||||
end
|
||||
if config.show_filter_column and workspace and workspace_tag then
|
||||
local filtered = self:should_show_tail(workspace_tag) and utils.path_tail(workspace) .. Path.path.sep
|
||||
|
||||
Loading…
Reference in New Issue
Block a user