From 10fc8cf75bf9630533cabe87b96f9943b8b5aed2 Mon Sep 17 00:00:00 2001 From: Atom Mac Date: Sat, 12 Oct 2019 20:57:38 -0400 Subject: Add autoformat_config_* options to README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.3