iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.36k stars 268 forks source link

:MarkdownPreview does nothing: Mac vim version 9 #628

Closed Iridium-Lo closed 6 months ago

Iridium-Lo commented 6 months ago

Describe the bug :MarkdownPreview does not open rendered markdown file in browser, it does nothing

To Reproduce Steps to reproduce the behaviour:

Plugin manager is pathogen

  1. git cloned repo to ~/.vim/bundle
  2. vim README.md
  3. :MarkdownPreview
  4. nothing happens

Expected behaviour :MarkdownPreview should launch a browser window.

Screenshots Executing :MarkDownPreview:

Screenshot 2023-12-26 at 03 38 57

After execution:

Screenshot 2023-12-26 at 03 38 28

Desktop and more info (please complete the following information):

 λ vim --version | grep 9
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 05 2023 14:38:33)
+cmdline_compl     +lambda            +profile           +vim9script
~:  
 λ node --version
v21.5.0
~:  
 λ yarn --version
1.22.21
palladium-o commented 6 months ago

also on Ventura 14.2.1

Iridium-Lo commented 6 months ago

I got it working by cd'ing to the plugin directory and running npm install

SpamixOfficial commented 4 months ago

I got it working by cd'ing to the plugin directory and running npm install

This also resolved it for me

Iridium-Lo commented 4 months ago

I added a PR to for the readme to add this for to get normal vim working @iamcco it's been tested by 4 people no (1 of which is me) https://github.com/iamcco/markdown-preview.nvim/pull/649