Open adiron opened 6 years ago
I wonder if this and #162 could be merged together?
We could also add the option to allow extra args, such as --elm-version
like ALE allows.
Hey. Not sure which PR you're referring to, since this is #162 :P But either way I can try my best, though my viml is very basic
Haha, sorry, #146.
From the looks of it, that PR deals with basically the same thing this one deals with, so I'm fine with closing mine
I haven't had a proper look through the code, so I'm not sure which is a better implementation (though both are quite similar). @otaconix what do you think?
The fact our two diffs are so alike gives me confidence that the approach I took is probably the right one. I'd be absolutely fine with this PR being chosen over mine.
Literally the only thing of note among the differences there are, is the name of the variable: elm_format_binary
in my PR, elm_format_command
in this one. Don't think you could go wrong with either.
Honestly it's up to you guys, maybe just flip a coin. 😂 #146 is older at least and has just slightly better comments.
Some distributions of
elm-format
(e.g. Homebrew on Mac) give the executable(s) names such aselm-format-0.19
. Previously, the plugin would try to runelm-format
or else fail. Now, I have addedg:elm_format_command
which can be set to any command/path/etc. soelm-format
can run even if installed under a weird path.