aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtom Mac <atom.mac@gmail.com>2019-10-12 20:57:38 -0400
committerAtom Mac <atom.mac@gmail.com>2019-10-12 20:57:38 -0400
commit10fc8cf75bf9630533cabe87b96f9943b8b5aed2 (patch)
tree5ae3aa846d9b11f53614b7accf26f83394ff94eb
parent263d34324b5ad7f9c25f0d56db8d64c43c9c9d58 (diff)
downloadvim-prettier-10fc8cf75bf9630533cabe87b96f9943b8b5aed2.tar.xz
Add autoformat_config_* options to README
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index cf36367..f83fb6d 100644
--- a/README.md
+++ b/README.md
@@ -133,6 +133,18 @@ Enable auto formatting of files that have "@format" or "@prettier" tag
let g:prettier#autoformat = 1
```
+Toggle the `g:prettier#autoformat` setting based on whether a config file can be found in the current directory or any parent directory.
+
+```vim
+let g:prettier#autoformat_config_present = 1
+```
+
+A list containing all config file names to search for when using the `g:prettier#autoformat_config_present` option.
+
+```vim
+let g:prettier#autoformat_config_files = [...]
+```
+
Set the prettier CLI executable path
```vim