You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,13 @@ Allow auto formatting for files without "@format" or "@prettier" tag
176
176
let g:prettier#autoformat_require_pragma = 0
177
177
```
178
178
179
+
**NOTE** The previous two options can be used together for autoformatting files on save without `@format` or `@prettier` tags
180
+
181
+
```vim
182
+
let g:prettier#autoformat = 1
183
+
let g:prettier#autoformat_require_pragma = 0
184
+
```
185
+
179
186
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!
0 commit comments