Skip to content

Commit 1eb13f8

Browse files
committed
feat(config): improve highlight table typing
1 parent d4fb5c2 commit 1eb13f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/astroui/config.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
---@alias StringMap table<string,string>
1111
---@alias AstroUIIconHighlight (fun(self:table):boolean)|boolean
12+
---@alias AstroUIHighlight vim.api.keyset.highlight
13+
---@alias AstroUIHighlights table<string,vim.api.keyset.highlight>
1214

1315
---@class AstroUIFileIconHighlights
1416
---@field tabline AstroUIIconHighlight? enable or disabling file icon highlighting in the tabline
@@ -136,7 +138,7 @@
136138
--- },
137139
---}
138140
---```
139-
---@field highlights table<string,(table<string,table>|fun():table<string,table>)>?
141+
---@field highlights table<string,(AstroUIHighlights|fun():AstroUIHighlights)>?
140142
---A table of icons in the UI using NERD fonts
141143
---Example:
142144
---

0 commit comments

Comments
 (0)