Skip to content

Commit b146fda

Browse files
authored
Merge pull request #316 from sharils/master
Improve install instruction
2 parents 0e61e4a + bb25c5a commit b146fda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ settings.
99

1010
```vim
1111
Plug 'prettier/vim-prettier', {
12-
\ 'do': 'yarn install',
12+
\ 'do': 'yarn install --frozen-lockfile --production',
1313
\ 'branch': 'release/0.x'
1414
\ }
1515
```
@@ -42,15 +42,15 @@ yarn|npm installed globally.
4242
```vim
4343
" post install (yarn install | npm install) then load plugin only for editing supported files
4444
Plug 'prettier/vim-prettier', {
45-
\ 'do': 'yarn install',
45+
\ 'do': 'yarn install --frozen-lockfile --production',
4646
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] }
4747
```
4848

4949
or simply enable for all formats by:
5050

5151
```vim
5252
" post install (yarn install | npm install) then load plugin only for editing supported files
53-
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
53+
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' }
5454
```
5555

5656
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'})
6868

6969
If using other vim plugin managers or doing manual setup make sure to have
7070
`prettier` installed globally or go to your vim-prettier directory and either do
71-
`npm install` or `yarn install`
71+
`npm install` or `yarn install --frozen-lockfile`
7272

7373
### Prettier Executable resolution
7474

0 commit comments

Comments
 (0)