diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2018-01-18 15:45:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-18 15:45:40 -0800 |
| commit | 5f5e582f643142edb1468f9f35d5702976bc6e5d (patch) | |
| tree | 0bfde9223feae22448d3aa6a2d242b94e17ad123 /plugin | |
| parent | ee3cb64ef5e0af9f0d293960a8ae33989fbc6469 (diff) | |
| parent | 6132290b3e7d92db236bc7b11a246e1307e6332a (diff) | |
| download | vim-prettier-5f5e582f643142edb1468f9f35d5702976bc6e5d.tar.xz | |
Merge pull request #101 from nthurow/master
Support the `--arrow-parens` configuration option
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/prettier.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim index bd02c3c..4761fe0 100644 --- a/plugin/prettier.vim +++ b/plugin/prettier.vim @@ -54,6 +54,9 @@ let g:prettier#config#bracket_spacing = get(g:,'prettier#config#bracket_spacing' " put > on the last line instead of new line let g:prettier#config#jsx_bracket_same_line = get(g:,'prettier#config#jsx_bracket_same_line', 'true') +" avoid wrapping a single arrow function param in parens +let g:prettier#config#arrow_parens = get(g:,'prettier#config#arrow_parens', 'avoid') + " none|es5|all let g:prettier#config#trailing_comma = get(g:,'prettier#config#trailing_comma', 'all') |
