-
Notifications
You must be signed in to change notification settings - Fork 107
Support multiple formatters on a single buffer #178
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
Comments
The workaround is bit ugly, but hopefully it helps anyone coming to this issue in the meantime:
|
Yes, you're not alone! See #44. I'll merge these and post an update with some more details there. |
autocmd BufWritePre *.cpp,*.h call ApplyCppFormatters() | noautocmd write BTW, isn't |
Correct, thank you! I had this because I had a different formatter which wasn't able to accept stdin, so it works on a post-write hook and then needs to write the file again:
|
I'm trying to run several different formatters on a single buffer when I save it. Something like:
(which in fact only applies the last formatter given) I also tried:
But that doesn't apply either.
:help AutoFormatBuffer
didn't help me, but surely I'm not the only person who wants to apply two or more formatters?The text was updated successfully, but these errors were encountered: