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
|
-- displays prettier md rendering
|
||||||
{
|
{
|
||||||
"MeanderingProgrammer/markdown.nvim",
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
main = "render-markdown",
|
main = "render-markdown",
|
||||||
opts = {
|
opts = {
|
||||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
|
file_types = { "markdown", "quarto", "pandoc", "vimwiki", "norg", "rmd", "org" },
|
||||||
win_options = {
|
code = {
|
||||||
conceallevel = {
|
sign = false,
|
||||||
rendered = 2,
|
width = 'block',
|
||||||
},
|
right_pad = 1,
|
||||||
},
|
|
||||||
heading = {
|
|
||||||
width = "block",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
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
|
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
|
||||||
ft = writing_ft,
|
ft = writing_ft,
|
||||||
|
cmd = "RenderMarkdown",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>pp",
|
"<leader>pp",
|
||||||
|
|
Loading…
Reference in a new issue