diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/voltage/highlights/plugins/render-markdown.lua | 15 | ||||
| -rw-r--r-- | lua/voltage/init.lua | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lua/voltage/highlights/plugins/render-markdown.lua b/lua/voltage/highlights/plugins/render-markdown.lua new file mode 100644 index 0000000..9d4adbb --- /dev/null +++ b/lua/voltage/highlights/plugins/render-markdown.lua @@ -0,0 +1,15 @@ +local M = {} + +function M.setup(colors, config) + local accent = colors[config.accent] + + return { + RenderMarkdownCode = { bg = accent.darkest }, + RenderMarkdownCodeBorder = { fg = colors.magenta.light, bg = colors.magenta.darker }, + RenderMarkdownCodeFallback = { fg = colors.fg }, + RenderMarkdownCodeInline = { fg = colors.magenta.light, bg = colors.magenta.darker }, + RenderMarkdownInlineHighlight = { fg = colors.yellow.light, bg = colors.yellow.darker } + } +end + +return M diff --git a/lua/voltage/init.lua b/lua/voltage/init.lua index e299697..1bd22fb 100644 --- a/lua/voltage/init.lua +++ b/lua/voltage/init.lua @@ -97,7 +97,7 @@ function M.setup(opts) end end - for _, highlight in ipairs({ "netrw", "fzf", "blink", "mini" }) do + for _, highlight in ipairs({ "netrw", "fzf", "blink", "mini", "render-markdown" }) do local mod = require("voltage.highlights.plugins." .. highlight) for group, group_opts in pairs(mod.setup(colors, M.config)) do |
