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

.clang-format file is ignored when style is specified to file #476

Open
Stewil opened this issue Sep 12, 2023 · 0 comments
Open

.clang-format file is ignored when style is specified to file #476

Stewil opened this issue Sep 12, 2023 · 0 comments

Comments

@Stewil
Copy link

Stewil commented Sep 12, 2023

Hello, I stumbled on some unexpected behaviour. As per an old issue (#8 ) response, I put the following in my init.vim:

let g:neoformat_cpp_clangformat = {
            \ 'exe': 'clang-format',
            \ 'args': ['-style=file'],
            \ }

which resultet in the behaviour that my .clang-format file was completely ignored.
However, removing the entire block and only leaving let g:neoformat_enabled_cpp = ['clangformat'] as the sole configuration of neoformat in the init.vim file resulted in the expected behaviour of the .clang-format file being read.

I assume this is a bug, as the same arg given on the commandline results in .clang-format being used

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

1 participant