feat: add highlight for executable files
Problem: executable files were visually indistinguishable from regular files in oil buffers. Solution: add OilExecutable highlight group (linked to DiagnosticOk) that detects executables via Unix permission bits (S_IXUSR|S_IXGRP| S_IXOTH) and Windows executable extensions (.exe, .bat, .cmd, .com, .ps1). Applied to both regular files and symlink targets. Based on: stevearc/oil.nvim#698 Closes stevearc/oil.nvim#679
This commit is contained in:
parent
950d3d1ad2
commit
41556ec87f
3 changed files with 43 additions and 1 deletions
|
|
@ -719,6 +719,9 @@ OilFile *hl-OilFil
|
|||
OilFileHidden *hl-OilFileHidden*
|
||||
Hidden normal files in an oil buffer
|
||||
|
||||
OilExecutable *hl-OilExecutable*
|
||||
Executable files in an oil buffer
|
||||
|
||||
OilCreate *hl-OilCreate*
|
||||
Create action in the oil preview window
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue