diff options
| author | Aaron Arinder <aaronarinder@gmail.com> | 2021-10-18 11:00:40 -0400 |
|---|---|---|
| committer | Aaron Arinder <aaronarinder@gmail.com> | 2021-10-18 11:00:40 -0400 |
| commit | a41f8de91ae3d235a4760d6b515e14f9e2fa7554 (patch) | |
| tree | a2cac46f6a1b696e121788c281450117c43dd650 | |
| parent | 0e61e4a5b55d2740aa118db91a6671dcb11307e8 (diff) | |
| download | vim-prettier-a41f8de91ae3d235a4760d6b515e14f9e2fa7554.tar.xz | |
readme: example config: autoformat on save without pragma
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -176,6 +176,13 @@ Allow auto formatting for files without "@format" or "@prettier" tag let g:prettier#autoformat_require_pragma = 0 ``` +**NOTE** The previous two options can be used together for autoformatting files on save without `@format` or `@prettier` tags + +```vim +let g:prettier#autoformat = 1 +let g:prettier#autoformat_require_pragma = 0 +``` + Toggle the `g:prettier#autoformat` setting based on whether a config file can be found in the current directory or any parent directory. Note that this will override the `g:prettier#autoformat` setting! ```vim |
