iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.67k stars 277 forks source link

Preview doesnt open at all. #567

Closed reDpz closed 1 year ago

reDpz commented 1 year ago

Describe the bug When I run ":MarkdownPreview" nothing happens

Expected behavior Firefox opens with url to preview

Desktop (please complete the following information):

I'm using nvchad and I have this in my plugins.lua:

  {
    'iamcco/markdown-preview.nvim',
    lazy = false,
    run = "cd app && npm install",
    setup = function()
      vim.g.mkdp_filetypes = { "markdown" }
    end,
    ft = { "markdown" },
    config = function()
      vim.cmd([[" essentially just a copy of the config from the github page, I've tried removing and adding this line this doesnt make a difference.]])
    end,
ethanh6 commented 1 year ago

424

reDpz commented 1 year ago

ill try it out then close if it worked thanks

reDpz commented 1 year ago

ill try it out then close if it worked thanks

sorry for late reply, that worked thanks.

# go to directory containing markdown preview
cd /home/erik/.local/share/nvim/lazy/markdown-preview.nvim/ # this may only be the correct directory if you use lazy as a package manager.

# run install script
./install.sh

I should mention that in my original I comment I was using run = which isnt really supported by lazy.

If you are using lazy use build instead