Skip to content

Commit 491ea20

Browse files
authored
chore(config): create colors alias and update themes function type (#68)
1 parent 228ee2c commit 491ea20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lua/one_monokai/config.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
local config = {}
22

3+
---@alias colors table<string,string> #colors table
4+
---
35
---@class config
46
---@field transparent boolean #whether to enable transparent background
5-
---@field colors table<string, string> #custom colors
6-
---@field themes function<table> #custom highlight groups
7+
---@field colors colors #custom colors
8+
---@field themes fun(colors:colors):table #custom highlight groups
79
---@field italics boolean #whether to italicize some highlight groups
810
config.default = {
911
transparent = false,
1012
colors = {},
11-
---@param _ table<string, string>? #colors table
1213
themes = function(_)
1314
return {}
1415
end,

0 commit comments

Comments
 (0)