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. --- autoload/prettier.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autoload/prettier.vim') diff --git a/autoload/prettier.vim b/autoload/prettier.vim index c703fba..0c369c1 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -324,6 +324,8 @@ function! s:Get_Prettier_Exec_Args(config) abort \ get(a:config, 'configPrecedence', g:prettier#config#config_precedence) . \ ' --prose-wrap ' . \ get(a:config, 'proseWrap', g:prettier#config#prose_wrap) . + \ ' --html-whitespace-sensitivity ' . + \ get(a:config, 'htmlWhitespaceSensitivity', g:prettier#config#html_whitespace_sensitivity) . \ ' --stdin-filepath ' . \ simplify(expand('%:p')) . \ ' --loglevel error '. -- cgit v1.3-5-g9baa