ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Elixir​Formatter

by myskoach ST3

Sublime Text 3 plugin for formatting Elixir files on save via `mix format`

Labels elixir, formatting, mix

Details

Installs

  • Total 4K
  • Win 748
  • Mac 2K
  • Linux 1K
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 1 0 0
Mac 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 0 0 4 0 0 0 0 0 1 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 2 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1

Readme

Source
raw.​githubusercontent.​com

ElixirFormatter

Sublime Text 3 plugin for formatting Elixir files on save via mix format.

  1. Formats the file on save using test env
  2. Maintains position in buffer
  3. Goes to line on syntax error
  4. Considers project configs

Caveat Emptor

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.

Installation

1. Package Control

Look for ElixirFormatter.

2. Through git

  1. Go to your packages folder (in Sublime: Preferences > Browse Packages…).
  2. Clone the repo git clone https://github.com/myskoach/sublime-elixir-formatter.git

3. Manually

Download this repo as an ElixirFormatter folder and save it into your packages (in Sublime: Preferences > Browse Packages…).

Contributing

We need:

  1. Tests
  2. Some config (specifically, which env to use on mix format)

PRs welcome.