Skip to content

Commit

Permalink
Change yarn to npx --yes yarn (iamcco#540)
Browse files Browse the repository at this point in the history
Co-authored-by: 年糕小豆汤 <[email protected]>
  • Loading branch information
sharils and iamcco authored Oct 16, 2023
1 parent 0b38302 commit de6c417
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ Install with [vim-plug](https://github.com/junegunn/vim-plug):
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" If you have nodejs and yarn
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
" If you have nodejs
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && npx --yes yarn install' }
```

Or install with [dein](https://github.com/Shougo/dein.vim):

```vim
call dein#add('iamcco/markdown-preview.nvim', {'on_ft': ['markdown', 'pandoc.markdown', 'rmd'],
\ 'build': 'sh -c "cd app && yarn install"' })
\ 'build': 'sh -c "cd app && npx --yes yarn install"' })
```

Or with [minpac](https://github.com/k-takata/minpac):
Expand Down Expand Up @@ -121,11 +121,12 @@ add plugin to the `~/.local/share/nvim/site/pack/packer/start/` directory:
cd ~/.local/share/nvim/site/pack/packer/start/
git clone https://github.com/iamcco/markdown-preview.nvim.git
cd markdown-preview.nvim
yarn install
yarn build
npx --yes yarn install
npx --yes yarn build
```

Please make sure that you have installed `node.js` and `yarn`.
Open `nvim` and run `:PackerInstall` to make it work.
Open `nvim` and run `:PackerInstall` to make it workable

### MarkdownPreview Config:

Expand Down

0 comments on commit de6c417

Please sign in to comment.