Skip to content

Commit

Permalink
fix(config): consistent hl type in overrides function and table
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Aug 1, 2024
1 parent a743b7e commit 8550789
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lua/cyberdream/config.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
local M = {}

---@class CyberdreamHighlight
---@field fg string
---@field bg string
---@field sp string
---@field bold boolean
---@field italic boolean
---@field underline boolean
---@field strikethrough boolean
---@field fg? string
---@field bg? string
---@field sp? string
---@field bold? boolean
---@field italic? boolean
---@field underline? boolean
---@field strikethrough? boolean

---@alias Colors table<CyberdreamColorDefault|CyberdreamColorLight|string, string>
---@alias CyberdreamPalette CyberdreamColorLight|CyberdreamColorDefault|Colors

---@alias CyberdreamOverrideFn fun(palette: CyberdreamPalette): CyberdreamHighlight

---@class ThemeConfig
---@field variant? string | "'default'" | "'light'" | "'auto'"
---@field variant? "default" | "light" | "auto"
---@field colors? CyberdreamPalette
---@field highlights? table<string, table<string, string>>
---@field highlights? table<string, CyberdreamHighlight>
---@field overrides? CyberdreamOverrideFn
---@field cache? boolean

Expand Down

0 comments on commit 8550789

Please sign in to comment.