feat(markdown): Markdown render plugin updates

- Use default colors which are more sensible
- Render paragraphs, bullets & quotes
- Better indentation rendering
This commit is contained in:
Pratik Tripathy
2025-03-31 11:28:10 +05:30
parent 1ece1f97ff
commit 3ff77316f2

View File

@@ -6,11 +6,11 @@ return {
init = function() init = function()
-- Define color variables -- Define color variables
local color1_bg = "#295715" local color1_bg = "#295715"
local color2_bg = "#8d8200" local color2_bg = "#295477"
local color3_bg = "#a56106" local color3_bg = "#395499"
local color4_bg = "#7e0000" local color4_bg = "#495477"
local color5_bg = "#1e0b7b" local color5_bg = "#595477"
local color6_bg = "#560b7b" local color6_bg = "#695477"
local color_fg = "white" local color_fg = "white"
-- Heading colors (when not hovered over), extends through the entire line -- Heading colors (when not hovered over), extends through the entire line
@@ -42,28 +42,28 @@ return {
heading = { heading = {
sign = false, sign = false,
icons = { "󰼏 ", "󰼐 ", "󰼑 ", "󰼒 ", "󰼓 ", "󰼔 " }, icons = { "󰼏 ", "󰼐 ", "󰼑 ", "󰼒 ", "󰼓 ", "󰼔 " },
backgrounds = { width = "block",
"Headline1Bg", right_pad = 1,
"Headline2Bg", -- position = { "right" },
"Headline3Bg", },
"Headline4Bg", paragraph = {
"Headline5Bg", render_modes = true,
"Headline6Bg", },
}, bullet = {
foregrounds = { render_modes = true,
"Headline1Fg", },
"Headline2Fg", checkbox = {
"Headline3Fg", render_modes = true,
"Headline4Fg", },
"Headline5Fg", quote = {
"Headline6Fg", render_modes = true,
},
}, },
pipe_table = { pipe_table = {
preset = "round", preset = "round",
}, },
indent = { indent = {
enabled = true, enabled = true,
render_modes = true,
skip_heading = true, skip_heading = true,
}, },
}, },