File tree 1 file changed +20
-12
lines changed
1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -8,31 +8,39 @@ local M = {}
8
8
function M .generate (variant )
9
9
local template = [==[
10
10
{
11
+ "name": "${name}",
12
+ "cursorColor": "${fg}",
13
+ "selectionBackground": "${bg_highlight}",
11
14
"background": "${bg}",
15
+ "foreground": "${fg}",
12
16
"black": "${bg}",
13
17
"blue": "${blue}",
18
+ "cyan": "${cyan}",
19
+ "green": "${green}",
20
+ "purple": "${purple}",
21
+ "red": "${red}",
22
+ "white": "${fg}",
23
+ "yellow": "${yellow}",
14
24
"brightBlack": "${bg_highlight}",
15
25
"brightBlue": "${blue}",
16
26
"brightCyan": "${cyan}",
17
27
"brightGreen": "${green}",
18
28
"brightPurple": "${purple}",
19
29
"brightRed": "${red}",
20
30
"brightWhite": "${fg}",
21
- "brightYellow": "${yellow}",
22
- "cursorColor": "${fg}",
23
- "cyan": "${cyan}",
24
- "foreground": "${fg}",
25
- "green": "${green}",
26
- "name": "cyberdream",
27
- "purple": "${purple}",
28
- "red": "${red}",
29
- "selectionBackground": "${bg_highlight}",
30
- "white": "${fg}",
31
- "yellow": "${yellow}"
31
+ "brightYellow": "${yellow}"
32
32
}
33
33
]==]
34
34
35
- return util .parse_extra_template (template , colors [variant ])
35
+ local theme = colors [variant ]
36
+
37
+ if variant == " default" then
38
+ theme .name = " Cyberdream"
39
+ else
40
+ theme .name = " Cyberdream " .. variant :sub (1 , 1 ):upper () .. variant :sub (2 , - 1 )
41
+ end
42
+
43
+ return util .parse_extra_template (template , theme )
36
44
end
37
45
38
46
return M
You can’t perform that action at this time.
0 commit comments