nvim: Improve quarto syntax rendering

Removed the standalone vim-pandoc-syntax plugin since I have not really
been using its functionality for a long time. Additionally, set reduce
conceallevel in markdown and quarto files to 2 for the time being to
prevent some rendering errors (especially on headlines) when interacting
with the markdown.nvim (render-markdown) plugin.
This commit is contained in:
Marty Oehme 2024-07-29 23:03:02 +02:00
parent 63cc63bb70
commit 7b9abab298
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 12 additions and 3 deletions

View file

@ -15,7 +15,6 @@ return {
dependencies = {
"jmbuhr/otter.nvim",
"neovim/nvim-lspconfig",
"vim-pandoc/vim-pandoc-syntax",
"hrsh7th/nvim-cmp",
"nvim-treesitter/nvim-treesitter",
{ "benlubas/molten-nvim", optional = true },

View file

@ -1,4 +1,4 @@
local writing_ft = { "quarto", "pandoc", "markdown", "text", "tex", "typst", "bib", "context", "rst" }
local writing_ft = { "quarto", "pandoc", "markdown", "text", "tex", "typst", "bib", "context", "rst", "vimwiki" }
local prose_plugs = {
-- UI improvements
@ -44,7 +44,17 @@ local prose_plugs = {
{
"MeanderingProgrammer/markdown.nvim",
main = "render-markdown",
opts = {},
opts = {
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
win_options = {
conceallevel = {
rendered = 2,
},
},
heading = {
width = "block",
},
},
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,