Open
Description
Describe the bug
I installed this plugin with the following setup
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
}
When I tried to run :MarkdownPreview
it just printed Node.js v22.6.0
and did nothing.
To Reproduce
Steps to reproduce the behavior:
- Add the plugin with lazy
- Open a markdown file
- Do
:MarkdownPreview
Expected behavior
A browser window should open with the preview of the markdown file.
Desktop
- OS: Arch Linux
- WM: Hyprland
- Browser: Brave Browser
Solution
I saw this issue and tried the following:
cd ~/.local/share/nvim/lazy/markdown-preview.nvim
npm install
I then tried to do MarkdownPreview
and it worked !!!
Metadata
Metadata
Assignees
Labels
No labels