Skip to content

Commit

Permalink
packer install without yarn or npm (iamcco#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeXun authored May 13, 2022
1 parent 8d7ce92 commit 02cc387
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ Or with [Packer.nvim](https://github.com/wbthomason/packer.nvim):

Add this in your `init.lua or plugins.lua`

```vim
```lua
-- install without yarn or npm
use({
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
})

use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
```

Expand Down

0 comments on commit 02cc387

Please sign in to comment.