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

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.