From 7cc8a70ae71da0312cff41f8f42f184ff5ee4d43 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 21 Dec 2018 11:24:57 +0900 Subject: [PATCH] Update doc --- doc/vim-lsp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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