Problem: the permissions column rendered as a monolithic unstyled string, making it hard to scan `rwx` bits at a glance. Solution: add per-character highlight groups for permission characters following the `eza`/`lsd` convention. All groups link to standard Neovim highlights so every colorscheme works out of the box.
This commit is contained in:
parent
7b16324c5a
commit
bf461f6844
6 changed files with 81 additions and 3 deletions
|
|
@ -1066,6 +1066,36 @@ M._get_highlights = function()
|
|||
link = 'OilHidden',
|
||||
desc = 'Hidden executable files in an oil buffer',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionRead',
|
||||
link = 'DiagnosticWarn',
|
||||
desc = 'Read permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionWrite',
|
||||
link = 'DiagnosticError',
|
||||
desc = 'Write permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionExec',
|
||||
link = 'DiagnosticOk',
|
||||
desc = 'Execute permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionSetuid',
|
||||
link = 'DiagnosticError',
|
||||
desc = 'Setuid/setgid permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionSticky',
|
||||
link = 'DiagnosticInfo',
|
||||
desc = 'Sticky bit permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilPermissionNone',
|
||||
link = 'NonText',
|
||||
desc = 'No permission character in the permissions column',
|
||||
},
|
||||
{
|
||||
name = 'OilCreate',
|
||||
link = 'DiagnosticInfo',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue