From 18f12f9068b01f086a90dec4f3c3b78fb2b66a1b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 13 Aug 2024 13:19:56 +0200 Subject: [PATCH] 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). --- nvim/.config/nvim/lua/plugins/prose.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/prose.lua b/nvim/.config/nvim/lua/plugins/prose.lua index 997a651..b0a3e16 100644 --- a/nvim/.config/nvim/lua/plugins/prose.lua +++ b/nvim/.config/nvim/lua/plugins/prose.lua @@ -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 = { { "pp",