vim-clang-format icon indicating copy to clipboard operation
vim-clang-format copied to clipboard

.clang-format file in root of repo

Open ldelossa opened this issue 6 years ago • 3 comments

Hello,

Will vim-clang-format obey a .clang-format file at the root of the repository even if directives in vimrc are set otherwise?

ldelossa avatar Jul 12 '19 14:07 ldelossa

I also want to know use g:clang_format#style_options or .clang-format file

kdurant avatar Aug 14 '19 00:08 kdurant

@kdurant it does do what i asked above. .clang-format in repository will override defaults in vim config

ldelossa avatar Aug 14 '19 00:08 ldelossa

What if the working directory does not correspond to the project root? May I set the path to .clang-format explicitly by a variable?

0v3rt1r3d avatar Dec 24 '19 13:12 0v3rt1r3d