aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorsharils <3063067+sharils@users.noreply.github.com>2021-11-02 15:04:00 +0800
committersharils <3063067+sharils@users.noreply.github.com>2021-11-02 15:04:00 +0800
commita4ef49a2e89ff0529bf3dac7a9f6a28d0acb1687 (patch)
tree5884338b0dbbd57507139c88bb076efffbf8db51 /README.md
parent0e61e4a5b55d2740aa118db91a6671dcb11307e8 (diff)
downloadvim-prettier-a4ef49a2e89ff0529bf3dac7a9f6a28d0acb1687.tar.xz
Install without updating lockfile
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 69d8fae..3ed45da 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ settings.
```vim
Plug 'prettier/vim-prettier', {
- \ 'do': 'yarn install',
+ \ 'do': 'yarn install --frozen-lockfile',
\ 'branch': 'release/0.x'
\ }
```
@@ -42,7 +42,7 @@ yarn|npm installed globally.
```vim
" post install (yarn install | npm install) then load plugin only for editing supported files
Plug 'prettier/vim-prettier', {
- \ 'do': 'yarn install',
+ \ 'do': 'yarn install --frozen-lockfile',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] }
```
@@ -50,7 +50,7 @@ or simply enable for all formats by:
```vim
" post install (yarn install | npm install) then load plugin only for editing supported files
-Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
+Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile' }
```
For those using [vim-pathogen](https://github.com/tpope/vim-pathogen), you can run the following in a terminal:
@@ -68,7 +68,7 @@ call dein#add('prettier/vim-prettier', {'build': 'npm install'})
If using other vim plugin managers or doing manual setup make sure to have
`prettier` installed globally or go to your vim-prettier directory and either do
-`npm install` or `yarn install`
+`npm install` or `yarn install --frozen-lockfile`
### Prettier Executable resolution