question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After typing :MarkdownPreview nothing happens

See original GitHub issue

Hi, I have installed this plugin using vim plug however when I type the command i.e MarkdownPreview nothing happens. I am fairly new to nvim but not sure why this is happening don’t have a lot of plugins or anything, running Arch linux. Here is a snippet of my plugins.vim file

  1 if empty(glob('~/.config/nvim/autoload/plug.vim'))
  2   silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
  3     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  4   "autocmd VimEnter * PlugInstall
  5   "autocmd VimEnter * PlugInstall | source $MYVIMRC
  6 endif
  7 
  8 call plug#begin('~/.config/nvim/autoload/plugged')
  9 
 10     " Better Syntax Support
 11     Plug 'sheerun/vim-polyglot'
 12     " File Explorer
 13     Plug 'scrooloose/NERDTree'
 14     " Auto pairs for '(' '[' '{'
 15     Plug 'jiangmiao/auto-pairs'
 16     " MARKDOWN PLUGINS
 17     Plug 'plasticboy/vim-markdown'
 18     Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim    -plug']}
 19 call plug#end()
~

As for init.vim I just pasted the default settings and added the firefox as the browser.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rambipcommented, Jun 14, 2021

I think the npm installs work differently in arch than in other distros.

I use packer for my nvim plugins, and: The config use {'iamcco/markdown-preview.nvim', run = 'cd app && npm install'} doesn’t work for me, even if I have npm installed.

But this one use {'iamcco/markdown-preview.nvim', config = "vim.call('mkdp#util#install')"} works well.

The install proposed in #329 should be the prebuild I think, this would cause less bugs.

2reactions
iamccocommented, Aug 6, 2020

@ikey4u should be fixed now.

@Abdulee your plugin install is not complete. do call mkdp#util#install() again or go to plugin’s app directory run yarn install or npm install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Markdown preview button does nothing · Issue #31038 - GitHub
Open a markdown file. Click the open preview button. Expected result: A preview is shown to the side. Actual result: Nothing happens.
Read more >
VSCode: "Markdown Preview" SHIFT-COMMAND-P not working
Nothing was working for me; when I did CTRL+SHIFT+P and searched for markdown, it yielded no results, and I couldn't find a way...
Read more >
Mardown plugin doesn't show preview
Hey there, as described above my WebStorm IDE doesn't show up the preview tab for markdown files anymore. This happens with any .md...
Read more >
Usage - Markdown Preview Documentation - GitHub Pages
To get live updates while editing a file after preview, you need to do the following: Enable the enable_autoreload setting in MarkdownPreview.
Read more >
Getting Started | Markdown Guide
Just open the site and start typing in the left pane. A preview of the rendered document appears in the right pane. Dillinger...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found