Skip to content

Commit 94896fb

Browse files
authored
Merge pull request elixir-editors#397 from hauleth/feat/add-formatprg-value
Set formatprg to new Elixir format builtin
2 parents 384e84f + 74e99f4 commit 94896fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ftplugin/elixir.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ let &l:path =
3030
setlocal includeexpr=elixir#util#get_filename(v:fname)
3131
setlocal suffixesadd=.ex,.exs,.eex,.erl,.yrl,.hrl
3232

33+
if empty(&formatprg)
34+
setlocal formatprg=mix\ format\ -
35+
endif
36+
3337
let &l:define = 'def\(macro|guard|delegate\)p'
3438

3539
silent! setlocal formatoptions-=t formatoptions+=croqlj

0 commit comments

Comments
 (0)