aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorJohn DeWyze <john.dewyze@gmail.com>2018-11-27 21:23:03 -0600
committerJohn DeWyze <john.dewyze@gmail.com>2018-11-27 21:23:03 -0600
commitc91d1bc5c15677fdb6585fc54c680809329ee88a (patch)
tree58fcd2bf8913236415c6752b087da06b6f8e9627 /plugin
parentf2755ec6fe465fb6af051a254d826018dcde2a50 (diff)
downloadvim-prettier-c91d1bc5c15677fdb6585fc54c680809329ee88a.tar.xz
Add option for html whitespace sensitivity
Per Prettier's [Blog Post](https://prettier.io/blog/2018/11/07/1.15.0.html) there is an option for prettiers sensitivity to html whitespace. See blog post for more details. This adds that option to vim-prettier and sets the default to the prettier default.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/prettier.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim
index b7f2855..84b2485 100644
--- a/plugin/prettier.vim
+++ b/plugin/prettier.vim
@@ -69,6 +69,9 @@ let g:prettier#config#config_precedence = get(g:, 'prettier#config#config_preced
" always|never|preserve
let g:prettier#config#prose_wrap = get(g:, 'prettier#config#prose_wrap', 'preserve')
+" css|strict|ignore
+let g:prettier#config#html_whitespace_sensitivity = get(g:, 'prettier#config#html_whitespace_sensitivity', 'css')
+
" Don't leave the quicklist focused on error.
let g:prettier#quickfix_auto_focus = get(g:, 'prettier#quickfix_auto_focus', 1)