summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorVictor S <victorplentz@gmail.com>2023-10-06 23:58:34 -0300
committerVictor S <victorplentz@gmail.com>2023-10-06 23:58:34 -0300
commit2ec63e2a1d18525a1cf0822fa32862b25f5802a5 (patch)
treea9290ed1c29c4a9c5eea5266f4010e151df08968 /plugin
parentdda5954fd6297f4c59bb5891e2641c7d9c3cbd20 (diff)
downloadvim-prettier-2ec63e2a1d18525a1cf0822fa32862b25f5802a5.tar.xz
refactor: add global variable for bracketSameLine
Added a global variable for the bracketSameLine option. It is set to the user's defined value and uses the Prettier default as reserve. This is part of a plan to compose the CLI command from an object with details about the flags
Diffstat (limited to 'plugin')
-rw-r--r--plugin/prettier.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim
index b85195e..66adfcc 100644
--- a/plugin/prettier.vim
+++ b/plugin/prettier.vim
@@ -113,6 +113,7 @@ let g:prettier#config#bracket_spacing = get(g:,'prettier#config#bracket_spacing'
" default: 'false'
" See more: https://prettier.io/docs/en/options.html#jsx-brackets
let g:prettier#config#jsx_bracket_same_line = get(g:,'prettier#config#jsx_bracket_same_line', 'false')
+let g:prettier#config#bracket_same_line = get(g:, 'prettier#config#bracket_same_line', 'false')
" avoid wrapping a single arrow function param in parens
" avoid|always