When prettier tells me to take one line with a whole object and put every property on a new line, I want a key to autofix that. I know prettier has things that can be auto-fixed, but I have no idea how to trigger it with ALE (or prettier).
(note: I'm programming in JS. An object would be something like { prop1: 1, prop2: 2 }
)
:h ale-fix
? (I've never use ale but a glance at the front page of the github site says you can trigger per-buffer fixing. Individual lines may need to be specified in config, though.):ALEFix prettier
fixed the whole file, which is a step in the right direction)(buffer)
or two arguments(buffer, lines)
, representing the buffer being fixed and the lines to fix. .. but I may be misreading things. If you have a followup question (esp. involving vimscript) feel free to ask here.