I'm trying to enable autoformatting of Elm code (I guess the problem would be the same for any language). In Elm the elm-format
program can normally used to format the code.
I see that there's an option in ALE to set the path of elm-format
so I guess elm-format
is supported by ALE. However I have no idea how to activate the option of autoformatting.
I can only see an option to set the path of elm-format
, but I already have elm-format
in the default path.
How do I enable the autoformatting ? Or maybe there's a key I have to type so that the code gets formatted? What key is it?
let g:ale_fix_on_save = 1