Skip to content

Commit

Permalink
types: refactor formatting of highlight types
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc authored Dec 8, 2023
1 parent cfafc3b commit f4eaf18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ local M = {}
---@field parsed_name nil|string

---@alias oil.EntryType "file"|"directory"|"socket"|"link"|"fifo"
---@alias oil.TextChunk string|string[]|{ [1]: string, [2]: { [1]: string, [2]: integer, [3]: integer }[] }
---@alias oil.HlRange { [1]: string, [2]: integer, [3]: integer } A tuple of highlight group name, col_start, col_end
---@alias oil.HlTuple { [1]: string, [2]: string } A tuple of text, highlight group
---@alias oil.HlRangeTuple { [1]: string, [2]: oil.HlRange[] } A tuple of text, internal highlights
---@alias oil.TextChunk string|oil.HlTuple|oil.HlRangeTuple
---@alias oil.CrossAdapterAction "copy"|"move"

---@class (exact) oil.Adapter
Expand Down

0 comments on commit f4eaf18

Please sign in to comment.