From c91d1bc5c15677fdb6585fc54c680809329ee88a Mon Sep 17 00:00:00 2001 From: John DeWyze Date: Tue, 27 Nov 2018 21:23:03 -0600 Subject: 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. --- plugin/prettier.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin') 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) -- cgit v1.3