Add Elixir support.

This commit is contained in:
David Sissitka 2018-01-13 06:16:54 -05:00
parent d2161ef6a3
commit 7a7c0d109f
2 changed files with 12 additions and 0 deletions

View File

@ -228,6 +228,9 @@ Here is a list of formatprograms that are supported by default, and thus will be
* `fprettify` for modern __Fortran__.
Download from [official repository](https://github.com/pseewald/fprettify). Install with `./setup.py install` or `./setup.py install --user`.
* `mix format` for __Elixir__.
`mix format` is included with Elixir 1.6+.
## Help, the formatter doesn't work as expected!
If you're struggling with getting a formatter to work, it may help to set vim-autoformat in

View File

@ -439,3 +439,12 @@ endif
if !exists('g:formatters_fortran')
let g:formatters_fortran = ['fprettify']
endif
" Elixir
if !exists('g:formatdef_mix_format')
let g:formatdef_mix_format = '"mix format -"'
endif
if !exists('g:formatters_elixir')
let g:formatters_elixir = ['mix_format']
endif