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

problem with g:clang_format#auto_formatexpr #46

Open
CallumHoward opened this issue Aug 4, 2016 · 0 comments
Open

problem with g:clang_format#auto_formatexpr #46

CallumHoward opened this issue Aug 4, 2016 · 0 comments

Comments

@CallumHoward
Copy link

I have the following in my init.vim:

let g:clang_format#command = '/usr/local/Cellar/llvm/3.8.1/bin/clang-format'
let g:clang_format#code_style = "llvm"
let g:clang_format#auto_formatexpr = 1

and I am using:
NVIM v0.1.5-405-g00fc216
Build type: Release

I do not have the vim-operator-user plugin installed.

When using gql or Vgq (in a .cpp file) the inbuilt formatter is used.
:set formatexpr? gives formatexpr=

If I use :setl formatexpr=clang_format#replace(v:lnum,v:lnum+v:count-1) then the gq commands work as expected.
I am not sure how to call clang_format#is_invalid(), but running call clang_format#is_invalid() gives no response.

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