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 3K
  • Win 542
  • Mac 2K
  • Linux 898
Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11
Windows 2 0 1 0 0 0 1 1 1 1 0 1 0 0 2 1 1 1 1 0 0 0 0 1 2 1 0 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Mac 1 1 0 0 2 0 2 1 2 2 1 1 1 2 2 0 2 2 3 0 2 1 1 0 1 0 0 1 1 2 0 3 0 2 1 0 0 0 2 0 2 1 1 1 1 0
Linux 0 2 0 0 0 0 1 0 1 1 0 2 1 0 0 3 0 1 0 0 0 1 1 0 0 0 0 0 1 0 0 1 1 1 3 1 2 1 2 0 0 0 0 2 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.