Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for WebKit #90

Open
iduhetonas opened this issue Jan 15, 2020 · 2 comments
Open

Support for WebKit #90

iduhetonas opened this issue Jan 15, 2020 · 2 comments

Comments

@iduhetonas
Copy link

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?

@GiuseppeCesarano
Copy link

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.

@iduhetonas
Copy link
Author

@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, google, chromium, mozilla is supported. The default value is google

My problem was that I used g:clang_format#code_style = "webkit", which obviously didn't work. Maybe this can be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants