Skip to content

Commit 1461363

Browse files
committed
✨ Add render-markdown integration support
Add render-markdown.nvim integration with comprehensive theming - Add render-markdown.lua integration module with 52 highlight groups - Configure heading colors using theme palette (H1-H6 with distinct colors) - Add code block and inline code highlighting with background colors - Style list bullets, checkboxes, and quote blocks with theme colors - Configure table styling with purple accents and proper row formatting - Add link styling with cyan color and underline decoration - Include callout styling for info, success, hint, warn, and error states - Register render-markdown in plugin detection mapping - Add to available integrations list for auto-detection Provides complete markdown rendering support with SilkCircuit color scheme integration for enhanced document readability.
1 parent bcf5967 commit 1461363

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

lua/silkcircuit/integrations/init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ local plugin_mapping = {
143143
snacks = function()
144144
return pcall(require, "snacks")
145145
end,
146+
147+
-- render-markdown.nvim
148+
["render-markdown"] = function()
149+
return pcall(require, "render-markdown")
150+
end,
146151
}
147152

148153
-- Check if a plugin is installed
@@ -180,6 +185,7 @@ local all_integrations = {
180185
"outline",
181186
"rainbow_delimiters",
182187
"snacks",
188+
"render-markdown",
183189
"telescope",
184190
"treesitter",
185191
"trouble",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
local M = {}
2+
3+
function M.get(colors)
4+
return {
5+
-- Headings
6+
RenderMarkdownH1 = { fg = colors.pink, bold = true },
7+
RenderMarkdownH1Bg = { bg = colors.bg_highlight },
8+
RenderMarkdownH2 = { fg = colors.purple, bold = true },
9+
RenderMarkdownH2Bg = { bg = colors.bg_dark },
10+
RenderMarkdownH3 = { fg = colors.cyan, bold = true },
11+
RenderMarkdownH3Bg = { bg = colors.bg_dark },
12+
RenderMarkdownH4 = { fg = colors.yellow, bold = true },
13+
RenderMarkdownH4Bg = { bg = colors.bg_dark },
14+
RenderMarkdownH5 = { fg = colors.green, bold = true },
15+
RenderMarkdownH5Bg = { bg = colors.bg_dark },
16+
RenderMarkdownH6 = { fg = colors.blue, bold = true },
17+
RenderMarkdownH6Bg = { bg = colors.bg_dark },
18+
19+
-- Code
20+
RenderMarkdownCode = { bg = colors.bg_dark },
21+
RenderMarkdownCodeInline = { fg = colors.cyan, bg = colors.bg_highlight },
22+
23+
-- Lists
24+
RenderMarkdownBullet = { fg = colors.purple },
25+
RenderMarkdownDash = { fg = colors.purple_muted },
26+
27+
-- Checkboxes
28+
RenderMarkdownUnchecked = { fg = colors.red },
29+
RenderMarkdownChecked = { fg = colors.green },
30+
RenderMarkdownTodo = { fg = colors.yellow },
31+
32+
-- Quotes
33+
RenderMarkdownQuote = { fg = colors.purple_muted, italic = true },
34+
35+
-- Tables
36+
RenderMarkdownTableHead = { fg = colors.purple, bold = true },
37+
RenderMarkdownTableRow = { fg = colors.fg },
38+
RenderMarkdownTableFill = { fg = colors.purple_muted },
39+
40+
-- Links
41+
RenderMarkdownLink = { fg = colors.cyan, underline = true },
42+
43+
-- Callouts
44+
RenderMarkdownInfo = { fg = colors.cyan },
45+
RenderMarkdownSuccess = { fg = colors.green },
46+
RenderMarkdownHint = { fg = colors.yellow },
47+
RenderMarkdownWarn = { fg = colors.yellow },
48+
RenderMarkdownError = { fg = colors.red },
49+
}
50+
end
51+
52+
return M

0 commit comments

Comments
 (0)