-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(markdown-and-latex): add
render-markdown.nvim
(#1193)
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
lua/astrocommunity/markdown-and-latex/render-markdown-nvim/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
21 changes: 21 additions & 0 deletions
21
lua/astrocommunity/markdown-and-latex/render-markdown-nvim/init.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}, | ||
} |