To install Markdown Preview in LunarVim on Windows, follow these steps:
In config.lua
add the following to your lvim.plugins
table:
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" }
}
Then re-open LunarVim so that it installs Markdown Preview. Close LunarVim.
Using Git Bash, cd
to Markdown Preview's plugin folder:
cd $APPDATA/lunarvim/site/pack/lazy/opt/markdown-preview.nvim
Then run:
npx --yes yarn install
npx --yes yarn build
Other useful options to add to your config.lua
:
vim.g.mkdp_auto_close = 0 -- do not close browser if you switch buffer
vim.g.mkdp_theme = "dark" -- dark theme