diff options
| author | Nick Thurow <nicholas.thurow@optum.com> | 2018-01-18 11:20:44 -0600 |
|---|---|---|
| committer | Nick Thurow <nicholas.thurow@optum.com> | 2018-01-18 13:02:52 -0600 |
| commit | 6132290b3e7d92db236bc7b11a246e1307e6332a (patch) | |
| tree | 0bfde9223feae22448d3aa6a2d242b94e17ad123 /autoload/prettier.vim | |
| parent | ee3cb64ef5e0af9f0d293960a8ae33989fbc6469 (diff) | |
| download | vim-prettier-6132290b3e7d92db236bc7b11a246e1307e6332a.tar.xz | |
Support the `--arrow-parens` configuration option
Diffstat (limited to 'autoload/prettier.vim')
| -rw-r--r-- | autoload/prettier.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index a7c167e..f1efc32 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -46,7 +46,7 @@ function! prettier#Prettier(...) abort if l:execCmd != -1 let l:cmd = l:execCmd . s:Get_Prettier_Exec_Args(l:config) - " close quickfix if it is opened + " close quickfix if it is opened if s:prettier_quickfix_open call setqflist([]) cclose @@ -301,6 +301,8 @@ function! s:Get_Prettier_Exec_Args(config) abort \ get(a:config, 'bracketSpacing', g:prettier#config#bracket_spacing) . \ ' --jsx-bracket-same-line ' . \ get(a:config, 'jsxBracketSameLine', g:prettier#config#jsx_bracket_same_line) . + \ ' --arrow-parens ' . + \ get(a:config, 'arrowParens', g:prettier#config#arrow_parens) . \ ' --trailing-comma ' . \ get(a:config, 'trailingComma', g:prettier#config#trailing_comma) . \ ' --parser ' . |
