summaryrefslogtreecommitdiff
path: root/_usage_footer.lua
diff options
context:
space:
mode:
Diffstat (limited to '_usage_footer.lua')
-rw-r--r--_usage_footer.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/_usage_footer.lua b/_usage_footer.lua
index 421afd5..b2859a7 100644
--- a/_usage_footer.lua
+++ b/_usage_footer.lua
@@ -61,6 +61,12 @@ function M.section(ext, label, windows, opts)
opts = type(opts) == "table" and opts or { status = opts }
label = text(label):gsub("^%S+", string.lower)
local provider = (label:match("^(.-) %(") or label):lower()
+ if label == "antigravity" then
+ local colors = {34, 31, 33, 34, 32, 31} -- blue, red, yellow, blue, green, red
+ label = label:gsub("()(.)", function(i, letter)
+ return ("\27[%dm%s"):format(colors[(i - 1) % #colors + 1], letter)
+ end)
+ end
local status = opts.status and text(opts.status) or nil
local snapshot = {}
for _, window in ipairs(windows or {}) do