iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.76k stars 280 forks source link

[Fixed] `:MarkdownPreview` command does not respond, installed with packer.nvim #424

Closed ethanh6 closed 2 years ago

ethanh6 commented 2 years ago

Describe the bug Installed with packer.nvim

use {'iamcco/markdown-preview.nvim', run = 'cd app && yarn install'}

But the :MarkdownPreview command is not responding

To Reproduce Steps to reproduce the behavior:

  1. If installed, remove MarkdownPreview completely
  2. Install with the above options (no lazyloading)
  3. When installed, run :MarkdownPreview, it does not respond

Expected behavior A markdown preview page will popup in the browser.

Desktop (please complete the following information):

ethanh6 commented 2 years ago

Fix it by manually installing with install.sh 

$ cd ~/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/app/
$ ./install.sh
BilyZ98 commented 2 years ago

met the same problem, solve it with manually execute ./install.sh thanks

Jiiiiiin commented 2 years ago

my reinstallation will be solved later

keevee09 commented 2 years ago

An update to this issue. I updated LunarVim today and on re-installing markdown-preview I see that it is installed to ~/.local/share/nvim/site/pack/packer/opt/markdown-preview.nvim so is in opt rather than start: ~/.local/share/nvim/site/pack/packer/start I entered .../opt/markdown-preview/app and ran ./install.sh but this did not work. Instead this worked: $ cd ~/.local/share/lunarvim/site/pack/packer/start/markdown-preview.nvim/app $ ./install.sh

Ceobe33 commented 3 months ago

Fix it by manually installing with install.sh 

$ cd ~/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim/app/
$ ./install.sh

⚠️ when use cmd if u didn't use packer plug manager, modified the path and use or use filter in vim :filter markdown-preview scriptnames and cut down useful part to use

for example i use lazyvim: $ cd ~/.local/share/nvim/**lazy**/markdown-preview.nvim/app/ $ ./install.sh

SpamixOfficial commented 3 weeks ago

Using install.sh also solved it for me. How come this doesnt get triggered by default on installation? Should be noted, I use vim-plug