diff --git a/doc/vim-lsp.txt b/doc/vim-lsp.txt index 1ab938bf..f616b529 100644 --- a/doc/vim-lsp.txt +++ b/doc/vim-lsp.txt @@ -307,7 +307,8 @@ Format the entire document. LspDocumentFormatSync *LspDocumentFormatSync* -Same as |LspDocumentFormat| but synchronous. Useful when running |autocmd| commands such as formatting before save. +Same as |LspDocumentFormat| but synchronous. Useful when running |autocmd| +commands such as formatting before save. Example: autocmd BufWritePre LspDocumentFormatSync