sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.97k stars 188 forks source link

g:neoformat_only_msg_on_error not working correctly #462

Open no-more-secrets opened 1 year ago

no-more-secrets commented 1 year ago

When I don't set g:neoformat_only_msg_on_error then Neoformat emits messages on both success and failure of the parser, which is expected. But when I set it to 1, it doesn't emit any messages, even the "formatters {} failed to run" message, which seems incorrect. I think the problem is that the "failed to run" error message is emitted using the same function that is used to emit non-error messages (neoformat#utils#msg).