Description
openedon Sep 14, 2024
Did you check docs and existing issues?
- I have read all the LazyVim docs
- I have updated the plugin to the latest version before submitting this issue
- I have searched the existing issues of LazyVim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.1
Operating system/version
MacOS 14.6.1
Describe the bug
installed LazyExtras Markdown options and want to use MarkdownPreview, it is enabled, but when I run it, I only get a windows that says Node.js v20.11.1
Tearing my hair out, trying to figure out what I've done wrong. The core MarkdownPreview talks about setting iamcco/markdown-preview.nvim#188 but setting mkdp_browser doesn't seem to help.
I tried :healthcheck but nothing interesting there.
Is there a node log somewhere, seems like it is trying to start a node server?
The https://www.lazyvim.org/extras/lang/markdown#markdown-previewnvim explanation seems to say that cp is tied to MarkdownPreviewToggle so confused why this node message comes up. Is there more setup to do?
I had this working in my old vimscript and there is a yarn install that is needed, is this done or do I need to do manually.
Sorry to be so stupid, I just can't figure out how to debug :-)
Steps To Reproduce
- vim README.md
- cp
What is get is no preview in the default browser (Safari) and instead I get a message window that just says
Node version 20.11
Seems like it is trying to do some sort of node setup
Expected Behavior
Should see the Markdown file in a browser and it sync scrolls as you edit it.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s -- Minimal repro lua config
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- add any other plugins here
-- from https://www.lazyvim.org/extras/lang/markdown#markdown-previewnvim
{
"iamcco/markdown-preview.nvim",
ft = "markdown",
cmd = { "MarkdownPreview", "MarkdownPreviewToggle", "MarkdownPreviewStop" },
build = function()
require("lazy").load({ plugins = { "markdown-preview.nvim" } })
vim.fn["mkdp#util#install"]()
end,
config = function()
vim.cmd([[do FileType]])
end,
},
},
})