ElmCast / elm-vim

Elm plugin for Vim
BSD 3-Clause "New" or "Revised" License
572 stars 102 forks source link

Execute elm-format in Elm Root #169

Closed Hermanverschooten closed 3 years ago

Hermanverschooten commented 5 years ago

As mentioned in #166 there is still an issue when running elm-format. This PR runs elm-format in the folder where elm(-package).json is found.

mgold commented 5 years ago

I tried monkey-patching this in and it didn't work. But then I added --elm-version 0.19 to the string literal affected and it did. So thank you for that and I hope this (hacky) advice helps someone else.

jesse-c commented 5 years ago

I tried this locally (macOS, Neovim) and it's working for me. I had been previously using @mgold's suggestion

dtaskoff commented 5 years ago

I've already commented in #166, but that's been fixed in elm-format version 0.8.2.