aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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)