diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2017-06-07 10:45:48 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2017-06-07 10:46:20 -0700 |
| commit | c211c98ab7118be61873d0fe9897e5986c6f6441 (patch) | |
| tree | fc18e666a6f7446ca8021119f16eb28b729e4e04 /doc/prettier.txt | |
| parent | c28004d9c616a3599e8d0622c87fa071aa2342e8 (diff) | |
| download | vim-prettier-c211c98ab7118be61873d0fe9897e5986c6f6441.tar.xz | |
Adding async command and user configurations
- Adding configuration toggle for controlling error quick fix parsing
- Adding PrettierAsync command
- Fixing configuration bug where boolean values where not correctly
parsed
- Making sure that async jobs do not execute if already in progress
Diffstat (limited to 'doc/prettier.txt')
| -rw-r--r-- | doc/prettier.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/prettier.txt b/doc/prettier.txt index 08550ed..d26a299 100644 --- a/doc/prettier.txt +++ b/doc/prettier.txt @@ -65,7 +65,14 @@ The command `:Prettier` by default is synchronous but can be forced to be async < Enable vim-prettier to run in files without requiring the "@format" doc tag > - autocmd BufWritePre *.js,*.css,*.scss,*.less call prettier#Prettier() + " => for older vim you can run it synchronous before saving + autocmd BufWritePre *.js,*.css,*.scss,*.less Prettier + + " => vim greater than 8.0 has async support + autocmd BufWritePre *.js,*.css,*.scss,*.less PrettierAsync + + " => if you want prettier to run when changes happen + autocmd BufWritePre,TextChanged,InsertLeave *.js,*.css,*.scss,*.less PrettierAsync < Overwrite default configuration > |
