nvim: Improve markdown rendering

Remove redundant conceallevel fix (not required for quarto files
anymore), add additional filetype injections and do not highlight
codeblocks as much (no sign colum entry, bg not over whole doc width).
This commit is contained in:
Marty Oehme 2024-08-13 13:19:56 +02:00
parent bd29839910
commit 18f12f9068
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -42,22 +42,20 @@ local prose_plugs = {
},
-- displays prettier md rendering
{
"MeanderingProgrammer/markdown.nvim",
"MeanderingProgrammer/render-markdown.nvim",
main = "render-markdown",
opts = {
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
win_options = {
conceallevel = {
rendered = 2,
},
},
heading = {
width = "block",
},
file_types = { "markdown", "quarto", "pandoc", "vimwiki", "norg", "rmd", "org" },
code = {
sign = false,
width = 'block',
right_pad = 1,
},
},
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
ft = writing_ft,
cmd = "RenderMarkdown",
keys = {
{
"<leader>pp",