Skip to content

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

@Stewil

Description

@Stewil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions