improve markdown rendering
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user