Skip to content

Commit c5cae1f

Browse files
authored
feat(markdown-and-latex): add render-markdown.nvim (#1193)
1 parent d61303f commit c5cae1f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# render-markdown.nvim
2+
3+
Plugin to improve viewing Markdown files in Neovim
4+
5+
**Repository:** <https://github.com/MeanderingProgrammer/render-markdown.nvim>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
return {
2+
"MeanderingProgrammer/render-markdown.nvim",
3+
cmd = "RenderMarkdown",
4+
ft = function()
5+
local plugin = require("lazy.core.config").spec.plugins["render-markdown.nvim"]
6+
local opts = require("lazy.core.plugin").values(plugin, "opts", false)
7+
return opts.file_types or { "markdown" }
8+
end,
9+
dependencies = {
10+
{
11+
"nvim-treesitter/nvim-treesitter",
12+
opts = function(_, opts)
13+
if opts.ensure_installed ~= "all" then
14+
opts.ensure_installed =
15+
require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "markdown", "markdown_inline" })
16+
end
17+
end,
18+
},
19+
},
20+
opts = {},
21+
}

0 commit comments

Comments
 (0)