Added Markdown inline render Neovim

This commit is contained in:
Fabio Scotto di Santolo
2025-08-19 11:28:25 +02:00
parent 0c7c857e76
commit 0ed003b060
8 changed files with 120 additions and 62 deletions

View File

@@ -0,0 +1,60 @@
require("render-markdown").setup({
heading = { position = "inline" },
quote = { repeat_linebreak = true },
win_options = {
showbreak = {
default = "",
rendered = " ",
},
breakindent = {
default = false,
rendered = true,
},
breakindentopt = {
default = "",
rendered = "",
},
},
checkbox = {
unchecked = { icon = "" },
checked = { icon = "" },
},
code = {
position = "right",
width = "block",
right_pad = 10,
},
latex = {
enabled = true,
render_modes = false,
converter = "latex2text",
highlight = "RenderMarkdownMath",
position = "above",
top_pad = 0,
bottom_pad = 0,
},
link = {
custom = {
c = {
pattern = "%.[ch]$",
icon = "",
},
golang = {
pattern = "%.go$",
icon = "",
},
python = {
pattern = "%.py$",
icon = "󰌠 ",
},
lua = {
pattern = "%.lua$",
icon = "",
},
-- shell = {
-- pattern = "%.[sh|zsh]$",
-- icon = " ",
-- },
},
},
})