aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2017-09-25 22:28:45 -0700
committermitermayer <mitermayer.reis@gmail.com>2017-09-25 22:28:45 -0700
commitc880bd037e5768c4b4aaecee7a23df2a41c7c9ff (patch)
treee6aed0297f9dab77814b9d7f4829c2c39e066853 /README.md
parent9cc6c741d11fe5ac700f333a88881c9123f83f54 (diff)
downloadvim-prettier-c880bd037e5768c4b4aaecee7a23df2a41c7c9ff.tar.xz
issue/56 - Allowing user path overwrite configuration
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7c09fae..cff5c8b 100644
--- a/README.md
+++ b/README.md
@@ -29,9 +29,10 @@ When installed via vim-plug, a default prettier executable is installed inside v
vim-prettier executable resolution:
-1. Traverse parents and search for Prettier installation inside `node_modules`
-2. Look for a global prettier installation
-3. Use locally installed vim-prettier prettier executable
+1. Look for user defined prettier cli path from vim configuration file
+2. Traverse parents and search for Prettier installation inside `node_modules`
+3. Look for a global prettier installation
+4. Use locally installed vim-prettier prettier executable
### USAGE
@@ -91,6 +92,12 @@ Disable auto formatting of files that have "@format" tag
let g:prettier#autoformat = 0
```
+Set the prettier CLI executable path
+
+```vim
+let g:prettier#exec_cmd_path = "~/path/to/cli/prettier"
+```
+
The command `:Prettier` by default is synchronous but can also be forced async
```vim