Skip to content

Commit

Permalink
feat: allow function for status.colors table
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 8, 2023
1 parent 81905a6 commit 57f6ce3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/astroui/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-- copyright 2023
-- license GNU General Public License v3.0

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

---@class AstroUIFileIconHighlights
Expand Down Expand Up @@ -57,10 +57,10 @@
--- git_branch_fg = "#ABCDEF",
---}
---```
---@field colors table<string,string>?
---@field colors (StringMap|(fun(colors:StringMap):StringMap))?
---**MEANT FOR INTERNAL USE ONLY**
---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.
---@field fallback_colors table<string,string>?
---@field fallback_colors StringMap?
---Configure which icons that are highlighted based on context
---Example:
---
Expand Down Expand Up @@ -148,7 +148,7 @@
--- GitAdd = "",
---}
---```
---@field icons AstroUIIconTable?
---@field icons StringMap?
--- A table of only text "icons" used when icons are disabled
---Example:
---
Expand All @@ -157,7 +157,7 @@
--- GitAdd = "[+]",
---}
---```
---@field text_icons AstroUIIconTable?
---@field text_icons StringMap?
---Configuration options for the AstroNvim lines and bars built with the `status` API.
---Example:
---
Expand Down

0 comments on commit 57f6ce3

Please sign in to comment.