add hl groups for nvcheatsheet grid theme

v2.5
siduck 3 years ago
parent d48efd4a58
commit c0b4e92f5d

@ -1,7 +1,6 @@
local colors = require("base46").get_theme_tb "base_30" local colors = require("base46").get_theme_tb "base_30"
return { local M = {
NvChHeading = { NvChHeading = {
fg = colors.black, fg = colors.black,
bg = colors.blue, bg = colors.blue,
@ -17,3 +16,23 @@ return {
bg = colors.black2, bg = colors.black2,
}, },
} }
local cheatsheet_theme = require("core.utils").load_config().ui.cheatsheet.theme
if cheatsheet_theme == "grid" then
M.NvChAsciiHeader = {
fg = colors.blue,
}
local bgcols =
{ "blue", "red", "green", "yellow", "orange", "baby_pink", "purple", "white", "cyan", "vibrant_green", "teal" }
for _, value in ipairs(bgcols) do
M["NvChHead" .. value] = {
fg = colors.black,
bg = colors[value],
}
end
end
return M

Loading…
Cancel
Save