Skip to content

Commit c989d84

Browse files
committed
about g:clang_format#auto_format
1 parent 152224f commit c989d84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/clang-format.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ g:clang_format#detect_style_file *g:clang_format#detect_style_file*
150150
like .clang-format or _clang-format and applies the style to formatting.
151151
The default value is 1.
152152

153+
g:clang_format#auto_format *g:clang_format#auto_format*
154+
155+
When the value is 1, |vim-clang-format| automatically formats a current
156+
buffer on saving the buffer. Formatting is executed at |BufWritePre| event.
157+
The default value is 0.
153158

154159
==============================================================================
155160
SETUP EXAMPLE *vim-clang-format-setup-example*

0 commit comments

Comments
 (0)