improve markdown rendering

This commit is contained in:
2026-05-26 11:37:16 +02:00
parent 0b07230311
commit 8c5f6a863c
3 changed files with 279 additions and 3 deletions
@@ -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