From c0b4e92f5db0e1f4dbe95122498ace28d9273c31 Mon Sep 17 00:00:00 2001 From: siduck Date: Tue, 20 Dec 2022 08:36:49 +0530 Subject: [PATCH] add hl groups for nvcheatsheet grid theme --- lua/base46/integrations/nvcheatsheet.lua | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/lua/base46/integrations/nvcheatsheet.lua b/lua/base46/integrations/nvcheatsheet.lua index 958b320..88811a8 100644 --- a/lua/base46/integrations/nvcheatsheet.lua +++ b/lua/base46/integrations/nvcheatsheet.lua @@ -1,7 +1,6 @@ local colors = require("base46").get_theme_tb "base_30" -return { - +local M = { NvChHeading = { fg = colors.black, bg = colors.blue, @@ -17,3 +16,23 @@ return { 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