At the moment I use prettier for formatting with vim (via Coc). The issue I have is that prettier is opinionated and, at the same time, inconsistent.
With javascript, functions look like this:
function cheese() {
// stuff here
}
In PHP they look like this:
function cheese()
{
// stuff here
}
I want to be able to have full control over how conditionals, loops and functions look.
Is there a "vim way" of customising this?
I searched online but most solutions mention prettier!
:h =
.