Support for WebKit
iduhetonas opened this issue · 2 comments
clang-format
supports WebKit Coding Style: https://webkit.org/blog/25/webkit-coding-style-guidelines/
However, running :ClangFormat
gives different results than running clang-format -style=webkit
. Is it possible for the plugin to support WebKit as well?
I'm using the webkit style and it's working fine. To default to webkit style i just inserted
let g:clang_format#style_options = { "BasedOnStyle" : "WebKit"}
in my config flie.
@GiuseppeCesarano That's fantastic, thank you!
I wonder why this isn't listed as an option. According to the README.md
g:clang_format#code_style
is a base style.llvm
,chromium
,mozilla
is supported. The default value is
My problem was that I used g:clang_format#code_style = "webkit"
, which obviously didn't work. Maybe this can be added?