We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5750d07 commit 03ac610Copy full SHA for 03ac610
lua/codeshot/theme.lua
@@ -11,9 +11,12 @@ function theme._gen_hl(hl)
11
end
12
13
14
+ local bg = hl.background or hl.bg or hl.guibg or nil
15
+ local fg = hl.foreground or hl.fg or hl.guifg or nil
16
+
17
return {
- bg = hl.background and string.format('#%06x', hl.background) or '',
- fg = hl.foreground and string.format('#%06x', hl.foreground) or '',
18
+ bg = string.format('#%06x', bg) or '',
19
+ fg = string.format('#%06x', fg) or '',
20
style = style,
21
}
22
0 commit comments