diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/prettier.txt | 14 |
1 files changed, 9 insertions, 5 deletions
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: +> + <Leader>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' |
