diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2020-08-03 14:29:49 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-03 14:29:49 +1000 |
| commit | 154cf2e639280121e0e3de7fbeb7a55d1361ce70 (patch) | |
| tree | af72661d1aa660d23d97c78e77bd2260b0f3284f | |
| parent | b16bb29156bd5c50c8565a4512abe21e49097684 (diff) | |
| parent | d927452f2db2c43dc78c6b62783b64670569e5c9 (diff) | |
| download | vim-prettier-154cf2e639280121e0e3de7fbeb7a55d1361ce70.tar.xz | |
Merge branch 'master' into jamesbvaughan/ruby-filetype
| -rw-r--r-- | README.md | 12 | ||||
| -rw-r--r-- | plugin/prettier.vim | 2 |
2 files changed, 13 insertions, 1 deletions
@@ -24,6 +24,18 @@ have/support the "@format" pragma annotation in the header of the file. ### INSTALL +To install with vim 8+ plugins, simply clone to your `~/.vim/pack/plugins/start` directory, and add `packloadall` to your `.vimrc` (if you haven't already). + +```bash +mkdir -p ~/.vim/pack/plugins/start +git clone https://github.com/prettier/vim-prettier ~/.vim/pack/plugins/start/vim-prettier +``` + +`.vimrc`: +```vim +packloadall +``` + Install with [vim-plug](https://github.com/junegunn/vim-plug), assumes node and yarn|npm installed globally. diff --git a/plugin/prettier.vim b/plugin/prettier.vim index f7818dc..595f50d 100644 --- a/plugin/prettier.vim +++ b/plugin/prettier.vim @@ -33,7 +33,7 @@ let g:prettier#autoformat_config_files = get(g:, 'prettier#autoformat_config_fil \'.prettierrc.yaml', \'.prettierrc.js', \'.prettierrc.config.js', - \'.prettierrc.json' + \'.prettierrc.json', \'.prettierrc.toml']) " path to prettier cli |
