aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2017-09-14 11:15:11 -0700
committerGitHub <noreply@github.com>2017-09-14 11:15:11 -0700
commite5dd1fed0dc69f8fbc67e43268f07203ed321056 (patch)
tree32962fcf039eb9ec73d7d5b07a69a53562de97c4 /README.md
parentf0ce2b93bc9668be6c8cf863525100f07fcd8b52 (diff)
parent64756f28d3e6eec71e8591d0ada68ea6a0daf61f (diff)
downloadvim-prettier-0.1.0.tar.xz
Merge pull request #52 from prettier/issue/51-adding-support-for-prettier-1.60.1.0
Issue/51 adding support for prettier 1.7
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 92c3c06..7581820 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,10 @@
A vim plugin wrapper for prettier, pre-configured with custom default prettier settings.
+**Note:** requires `prettier` version 1.7.0+
+
+***
+
By default it will auto format **javascript**, **typescript**, **less**, **scss**, **css**, **json**, and **graphql** files that have "@format" annotation in the header of the file.
![vim-prettier](/media/vim-prettier.gif?raw=true "vim-prettier")
@@ -133,6 +137,9 @@ g:prettier#config#trailing_comma = 'all'
" flow|babylon|typescript|postcss|json|graphql
g:prettier#config#parser = 'flow'
+
+" cli-override|file-override|prefer-file
+g:prettier#config#config_precedence = 'prefer-file'
```
### REQUIREMENT(S)