Skip to content

Commit cf9a214

Browse files
committed
Update doc
1 parent c686037 commit cf9a214

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/vim-lsp.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,12 @@ Format the entire document.
307307

308308
LspDocumentFormatSync *LspDocumentFormatSync*
309309

310-
Same as LspDocumentFormat but synchronized.
310+
Same as |LspDocumentFormat| but synchronous. Useful when running |autocmd| commands such as formatting before save.
311+
312+
Example:
313+
autocmd BufWritePre <buffer> LspDocumentFormatSync
314+
315+
Note that this may slow down vim.
311316

312317
LspDocumentRangeFormat *LspDocumentRangeFormat*
313318

0 commit comments

Comments
 (0)