From c880bd037e5768c4b4aaecee7a23df2a41c7c9ff Mon Sep 17 00:00:00 2001 From: mitermayer Date: Mon, 25 Sep 2017 22:28:45 -0700 Subject: issue/56 - Allowing user path overwrite configuration --- doc/prettier.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'doc/prettier.txt') diff --git a/doc/prettier.txt b/doc/prettier.txt index 083c0df..82b601e 100644 --- a/doc/prettier.txt +++ b/doc/prettier.txt @@ -24,9 +24,10 @@ When installed via vim-plug, a default prettier executable is installed inside 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 ============================================================================== INSTALL *vim-prettier-install* @@ -81,6 +82,10 @@ Disable auto formatting of files that have "@format" tag > let g:prettier#autoformat = 0 < +Set the prettier CLI executable path +> + let g:prettier#exec_cmd_path = "~/path/to/cli/prettier" +< The command `:Prettier` by default is synchronous but can also be forced async > let g:prettier#exec_cmd_async = 1 -- cgit v1.3