fix(picker.format): apply hidden file hl group last. Fixes #2127

This commit is contained in:
Folke Lemaitre 2025-10-21 16:07:57 +02:00
parent 284ea48e7c
commit 0bf8fe4ece
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -78,10 +78,10 @@ function M.filename(item, picker)
if is("ignored") then
base_hl = "SnacksPickerPathIgnored"
elseif is("hidden") then
base_hl = "SnacksPickerPathHidden"
elseif item.filename_hl then
base_hl = item.filename_hl
elseif is("hidden") then
base_hl = "SnacksPickerPathHidden"
end
local dir_hl = "SnacksPickerDir"