aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2020-09-07 19:36:23 +1000
committerGitHub <noreply@github.com>2020-09-07 19:36:23 +1000
commit340182bbfedd18dd3eb3cac8adc62be0de90b3f4 (patch)
treedd57b367910b336c7f7297cc5e2b0aa804a48cec /README.md
parente12223182a51c85528159cb8baf4339998eb9797 (diff)
parentec8dc2bc344985c09e34fd6a4aff73702e2b7967 (diff)
downloadvim-prettier-340182bbfedd18dd3eb3cac8adc62be0de90b3f4.tar.xz
Merge branch 'master' into issue/232-adding-support-for-prettier-2.x
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index ca7d134..a826088 100644
--- a/README.md
+++ b/README.md
@@ -76,6 +76,20 @@ vim-prettier executable resolution:
3. Look for a global prettier installation
4. Use locally installed vim-prettier prettier executable
+### Prettier Stylelint
+
+To use an alternative command, like
+[`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint), set
+this at the buffer level, e.g.:
+
+```vim
+au FileType css,scss let b:prettier_exec_cmd = "prettier-stylelint"
+```
+
+vim-prettier will look for the executable in the same places it looks for
+`prettier`, and will fall back to `prettier` if it can't find
+`b:prettier_exec_cmd`
+
### USAGE
Prettier by default will run on auto save but can also be manually triggered by: