Open rogerwzeng opened 8 months ago
Same here using macOS Sonoma and Node 17.5. I installed markdown-preview
using the lazyvim config in the README.
To me nothing happen at all
Same as @h3ndry , nothing happens. NixOs 23.11, Node 20.10, yarn 1.22.19, installed with Lazy
@MarkoMin I manage to fix it... You have to trigger a rebuild
On Lazy you have to press x
I did clean then install few times but with no success
does your config look like this?
return {
"iamcco/markdown-preview.nvim",
ft = { "markdown" },
build = "cd app && npm install",
config = function()
vim.g.mkdp_filetypes = { "markdown" }
vim.keymap.set("n", "<leader>mp", ":MarkdownPreviewToggle <CR>" , {})
end,
}
It was:
-- install without yarn or npm
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end,
}
and it didn't work. With your config it works. Thanks
same on win11 wsl2,installed by lazy
same on macos using nvim 0.9.4, I tried using node 18 and 20.
@MarkoMin I manage to fix it... You have to trigger a rebuild
how is that?
@diegoulloao try reinstalling the plugin, it worked for me
this worked for me (lazy.nvim, neovim 9.x, ubuntu 22.04)
{
"iamcco/markdown-preview.nvim",
ft = { "markdown" },
build = "cd app && yarn install",
config = function() vim.g.mkdp_filetypes = { "markdown" } end,
},
should use npm or yarn to install
I have the same issue. MarkdownPreview opens the browser which then shows an error. When experimenting with manual install, yarn, npm etc. at some point just tne node version was displayed. Currently nothing is being shown. I also tried to set the log level, but that did not create a file or anything.
calling mkdp#util#install()
also did not help...
I am also a bit stuck here...
I was having the same problem. Another comment in an issue was a fix, but if you're using lazyvim, you basically do the same thing, except change the path to:
~/.local/share/nvim/lazy/markdown-preview.nvim/app/install.sh
and I got mine up and running great.
Same, message displayed Node.js v22.9.0
Describe the bug When invoking MarkdownPreview, vim simply displays the Node.js version in the status bar and nothing happens
To Reproduce Steps to reproduce the behavior:
Expected behavior Markdown rendering starts in new browser window
Screenshots
Desktop (please complete the following information):
Log: N/A