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
+1 -1
View File
@@ -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