I've been able to work around this with a small function snippet that I wrote, but it would be nice if there was a way to easily toggle ALEFix on save, on a per local buffer basis.
isn't that what you're looking for?
" Set this setting in vimrc if you want to fix files automatically on save.
" This is off by default.
let g:ale_fix_on_save = 1
I think he might be asking for a buffer-specific option, in addition to the global option. That's worth implementing.
@morhetz yeah, I built a small vimscript snippet that enables me to toggle the global ale_fix_on_save variable. But sometimes I am working in a file that I would rather not mess with, so being able to do like ALEFixToggle and have it only save for that specific buffer would be great.
@w0rp precisely, awesome!
b:ale_fix_on_save can now be used for controlling fixing on save for specific buffers.
Works great, thanks!
Most helpful comment
b:ale_fix_on_savecan now be used for controlling fixing on save for specific buffers.