aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-03-25 15:02:19 -0700
committermitermayer <mitermayer.reis@gmail.com>2018-03-25 15:02:19 -0700
commit31c10476272da60990d5e0639b8da15c76a5fa47 (patch)
tree9b2c814d3ac3a624f66795e666fa68af6cc451b4
parentba8b67a02fbb01495ac2ff4daf7f391c13a163e1 (diff)
downloadvim-prettier-31c10476272da60990d5e0639b8da15c76a5fa47.tar.xz
Updating readme and docs with the correct defaults
-rw-r--r--README.md15
-rw-r--r--doc/prettier.txt2
2 files changed, 12 insertions, 5 deletions
diff --git a/README.md b/README.md
index aac2b94..b7f7741 100644
--- a/README.md
+++ b/README.md
@@ -48,10 +48,10 @@ vim-prettier.
vim-prettier executable resolution:
-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
+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
@@ -129,6 +129,13 @@ By default parsing errors will open the quickfix but can also be disabled
let g:prettier#quickfix_enabled = 0
```
+Have the cursor returned to its original window after the quickfix window is
+shown.
+
+```vim
+let g:prettier#no_focus_quicklist = 0
+```
+
To enable vim-prettier to run in files without requiring the "@format" doc tag.
First disable the default autoformat, then update to your own custom behaviour
diff --git a/doc/prettier.txt b/doc/prettier.txt
index 33358bc..41f43e0 100644
--- a/doc/prettier.txt
+++ b/doc/prettier.txt
@@ -112,7 +112,7 @@ By default parsing errors will open the quickfix but can also be disabled
Have the cursor returned to its original window after the quickfix window is
shown.
>
- let g:prettier#no_focus_quicklist = 1
+ let g:prettier#no_focus_quicklist = 0
<
To enable vim-prettier to run in files without requiring the "@format" doc tag.
First disable the default autoformat, then update to your own custom behaviour