feat: pass oil bufnr to custom filename highlight function (#552)

This enables you to determine the full directory path, enabling e.g.,
HL groups for Git
This commit is contained in:
Ian Wright 2025-01-07 21:56:03 -05:00 committed by GitHub
parent a6a4f48b14
commit f5c563a074
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 9 deletions

View file

@ -118,7 +118,7 @@ CONFIG *oil-confi
{ "name", "asc" },
},
-- Customize the highlight group for the file name
highlight_filename = function(entry, is_hidden, is_link_target, is_link_orphan)
highlight_filename = function(entry, is_hidden, is_link_target, is_link_orphan, bufnr)
return nil
end,
},