Skip to content

Commit

Permalink
feat(markdown-and-latex): add render-markdown.nvim (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Sep 5, 2024
1 parent d61303f commit c5cae1f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim

**Repository:** <https://github.com/MeanderingProgrammer/render-markdown.nvim>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
return {
"MeanderingProgrammer/render-markdown.nvim",
cmd = "RenderMarkdown",
ft = function()
local plugin = require("lazy.core.config").spec.plugins["render-markdown.nvim"]
local opts = require("lazy.core.plugin").values(plugin, "opts", false)
return opts.file_types or { "markdown" }
end,
dependencies = {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed =
require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "markdown", "markdown_inline" })
end
end,
},
},
opts = {},
}

0 comments on commit c5cae1f

Please sign in to comment.