Sublime Text 3 plugin for formatting Elixir files on save via mix format
.
- Formats the file on save using test env
- Maintains position in buffer
- Goes to line on syntax error
- Considers project configs
This code is a fork from this gist which, in turn, is a fork from this unmantained repo. It is currently "maintained" by non-python devs.
Use with care.
Look for ElixirFormatter.
- Go to your packages folder (in Sublime: Preferences > Browse Packages...).
- Clone the repo
git clone https://github.com/myskoach/sublime-elixir-formatter.git
Download this repo as an ElixirFormatter folder and save it into your packages (in Sublime: Preferences > Browse Packages...).
We need:
- Tests
- Some config (specifically, which env to use on
mix format
)
PRs welcome.