Skip to content

Commit b9ab05f

Browse files
authored
feat: add OilEmpty highlight group (#689)
* Add OilEmpty highlight * Add OilEmpty to doc
1 parent e5a1398 commit b9ab05f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

doc/oil.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ yank_entry *actions.yank_entr
646646
--------------------------------------------------------------------------------
647647
HIGHLIGHTS *oil-highlights*
648648

649+
OilEmpty *hl-OilEmpty*
650+
Empty column values
651+
649652
OilHidden *hl-OilHidden*
650653
Hidden entry in an oil buffer
651654

lua/oil/columns.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ M.get_supported_columns = function(adapter_or_scheme)
5353
return ret
5454
end
5555

56-
local EMPTY = { "-", "Comment" }
56+
local EMPTY = { "-", "OilEmpty" }
5757

5858
M.EMPTY = EMPTY
5959

lua/oil/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,11 @@ end
823823
---@private
824824
M._get_highlights = function()
825825
return {
826+
{
827+
name = "OilEmpty",
828+
link = "Comment",
829+
desc = "Empty column values",
830+
},
826831
{
827832
name = "OilHidden",
828833
link = "Comment",

0 commit comments

Comments
 (0)