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:
parent
63cc63bb70
commit
7b9abab298
2 changed files with 12 additions and 3 deletions
|
@ -15,7 +15,6 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"jmbuhr/otter.nvim",
|
"jmbuhr/otter.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
"vim-pandoc/vim-pandoc-syntax",
|
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
{ "benlubas/molten-nvim", optional = true },
|
{ "benlubas/molten-nvim", optional = true },
|
||||||
|
|
|
@ -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 = {
|
local prose_plugs = {
|
||||||
-- UI improvements
|
-- UI improvements
|
||||||
|
@ -44,7 +44,17 @@ local prose_plugs = {
|
||||||
{
|
{
|
||||||
"MeanderingProgrammer/markdown.nvim",
|
"MeanderingProgrammer/markdown.nvim",
|
||||||
main = "render-markdown",
|
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
|
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,
|
||||||
|
|
Loading…
Reference in a new issue