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:
parent
bd29839910
commit
18f12f9068
1 changed files with 8 additions and 10 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue