After typing :MarkdownPreview nothing happens
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:14 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@ikey4u should be fixed now.
@Abdulee your plugin install is not complete. do
call mkdp#util#install()
again or go to plugin’sapp
directory runyarn install
ornpm install