From dce57065680fb867c45e88b7faf9d03e8d76724a Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 27 May 2017 23:40:05 -0700 Subject: Prettier CLI seems to expect 'false' for some parameters instead of 0 --- doc/prettier.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/prettier.txt b/doc/prettier.txt index a2f17f1..584595a 100644 --- a/doc/prettier.txt +++ b/doc/prettier.txt @@ -40,6 +40,10 @@ either do `npm install` or `yarn install` ============================================================================== USAGE *vim-prettier-usage* +Prettier can be manualy triggered by: +> + p +< Formats the entire buffer > :Prettier @@ -61,19 +65,19 @@ Overwrite default configuration g:prettier#config#tab_width = 2 " use tabs over spaces - g:prettier#config#use_tabs = 0 + g:prettier#config#use_tabs = 'false' " print semicolons - g:prettier#config#semi = 1 + g:prettier#config#semi = 'true' " single quotes over double quotes - g:prettier#config#single_quote = 1 + g:prettier#config#single_quote = 'true' " print spaces between brackets - g:prettier#config#bracket_spacing = 0 + g:prettier#config#bracket_spacing = 'false' " put > on the last line instead of new line - g:prettier#config#jsx_bracket_same_line = 1 + g:prettier#config#jsx_bracket_same_line = 'true' " none|es5|all g:prettier#config#trailing_comma = 'all' -- cgit v1.3-6-g1900