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