Skip to content

Commit

Permalink
fix(markdown-and-latex): improve installation process and lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 12, 2024
1 parent 56031b4 commit 7da567d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
return {
"iamcco/markdown-preview.nvim",
build = "cd app && yarn install",
ft = "markdown",
build = function() vim.fn["mkdp#util#install"]() end,
ft = { "markdown", "markdown.mdx" },
init = function()
local plugin = require("lazy.core.config").spec.plugins["markdown-preview.nvim"]
vim.g.mkdp_filetypes = require("lazy.core.plugin").values(plugin, "ft", true)
end,
}

0 comments on commit 7da567d

Please sign in to comment.