Skip to content

Commit 57f6ce3

Browse files
committed
feat: allow function for status.colors table
1 parent 81905a6 commit 57f6ce3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/astroui/config.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-- copyright 2023
88
-- license GNU General Public License v3.0
99

10-
---@alias AstroUIIconTable table<string,string>
10+
---@alias StringMap table<string,string>
1111
---@alias AstroUIIconHighlight (fun(self:table):boolean)|boolean
1212

1313
---@class AstroUIFileIconHighlights
@@ -57,10 +57,10 @@
5757
--- git_branch_fg = "#ABCDEF",
5858
---}
5959
---```
60-
---@field colors table<string,string>?
60+
---@field colors (StringMap|(fun(colors:StringMap):StringMap))?
6161
---**MEANT FOR INTERNAL USE ONLY**
6262
---A table of fallback colors if a colorscheme used by the user does not have a highlight group, the entry point to this are typically through the `status.colors` option.
63-
---@field fallback_colors table<string,string>?
63+
---@field fallback_colors StringMap?
6464
---Configure which icons that are highlighted based on context
6565
---Example:
6666
---
@@ -148,7 +148,7 @@
148148
--- GitAdd = "",
149149
---}
150150
---```
151-
---@field icons AstroUIIconTable?
151+
---@field icons StringMap?
152152
--- A table of only text "icons" used when icons are disabled
153153
---Example:
154154
---
@@ -157,7 +157,7 @@
157157
--- GitAdd = "[+]",
158158
---}
159159
---```
160-
---@field text_icons AstroUIIconTable?
160+
---@field text_icons StringMap?
161161
---Configuration options for the AstroNvim lines and bars built with the `status` API.
162162
---Example:
163163
---

0 commit comments

Comments
 (0)