diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2021-11-24 15:37:13 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-24 15:37:13 +1100 |
| commit | b146fdac7117ea2392044a79c0ff0b73a8b9d62e (patch) | |
| tree | 7b5f00b349bcd4ca5d996fe2b0d72adf8f140e27 /README.md | |
| parent | 0e61e4a5b55d2740aa118db91a6671dcb11307e8 (diff) | |
| parent | bb25c5a6b78e76a6d6d829276dda6437a9d3fb1c (diff) | |
| download | vim-prettier-b146fdac7117ea2392044a79c0ff0b73a8b9d62e.tar.xz | |
Merge pull request #316 from sharils/master
Improve install instruction
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,7 +9,7 @@ settings. ```vim Plug 'prettier/vim-prettier', { - \ 'do': 'yarn install', + \ 'do': 'yarn install --frozen-lockfile --production', \ '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 --production', \ '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 --production' } ``` 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 |
