forked from folke/tokyonight.nvim
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrender-markdown.lua
More file actions
25 lines (21 loc) · 771 Bytes
/
render-markdown.lua
File metadata and controls
25 lines (21 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local Util = require("teide.util")
local M = {}
M.url = "https://github.com/MeanderingProgrammer/render-markdown.nvim"
---@type teide.HighlightsFn
function M.get(c, opts)
-- stylua: ignore
local ret = {
RenderMarkdownBullet = {fg = c.orange}, -- horizontal rule
RenderMarkdownCode = { bg = c.bg_dimmed },
RenderMarkdownDash = {fg = c.orange}, -- horizontal rule
RenderMarkdownTableHead = { fg = c.red},
RenderMarkdownTableRow = { fg = c.orange},
RenderMarkdownCodeInline = "@markup.raw.markdown_inline"
}
for i, color in ipairs(c.rainbow) do
ret["RenderMarkdownH" .. i .. "Bg"] = { bg = Util.blend_bg(color, 0.1) }
ret["RenderMarkdownH" .. i .. "Fg"] = { fg = color, bold = true }
end
return ret
end
return M