Skip to content

Commit 71429c9

Browse files
committed
feat: added support for markdown.nvim
1 parent 8fb4f4d commit 71429c9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

lua/tokyonight/groups/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ M.plugins = {
2222
["lazy.nvim"] = "lazy",
2323
["leap.nvim"] = "leap",
2424
["lspsaga.nvim"] = "lspsaga",
25+
["markdown.nvim"] = "markdown",
2526
["mini.animate"] = "mini_animate",
2627
["mini.clue"] = "mini_clue",
2728
["mini.completion"] = "mini_completion",

lua/tokyonight/groups/markdown.lua

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
local Util = require("tokyonight.util")
2+
3+
local M = {}
4+
5+
M.url = "https://github.com/OXY2DEV/markview.nvim"
6+
7+
---@type tokyonight.HighlightsFn
8+
function M.get(c, opts)
9+
-- stylua: ignore
10+
local ret = {
11+
RenderMarkdownBullet = {fg = c.orange}, -- horizontal rule
12+
RenderMarkdownCode = { bg = c.bg_dark },
13+
RenderMarkdownDash = {fg = c.orange}, -- horizontal rule
14+
RenderMarkdownTableHead = { fg = c.red},
15+
RenderMarkdownTableRow = { fg = c.orange},
16+
}
17+
for i, color in ipairs(c.rainbow) do
18+
ret["RenderMarkdownH" .. i .. "Bg"] = { bg = Util.blend_bg(color, 0.1) }
19+
ret["RenderMarkdownH" .. i .. "Fg"] = { fg = color, bold = true }
20+
end
21+
return ret
22+
end
23+
24+
return M

0 commit comments

Comments
 (0)