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:
parent
a6a4f48b14
commit
f5c563a074
4 changed files with 11 additions and 9 deletions
|
|
@ -286,7 +286,7 @@ local M = {}
|
|||
---@field natural_order boolean|"fast"
|
||||
---@field case_insensitive boolean
|
||||
---@field sort oil.SortSpec[]
|
||||
---@field highlight_filename? fun(entry: oil.Entry, is_hidden: boolean, is_link_target: boolean, is_link_orphan: boolean): string|nil
|
||||
---@field highlight_filename? fun(entry: oil.Entry, is_hidden: boolean, is_link_target: boolean, is_link_orphan: boolean, bufnr: integer): string|nil
|
||||
|
||||
---@class (exact) oil.SetupViewOptions
|
||||
---@field show_hidden? boolean Show files and directories that start with "."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue