diff options
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index dad893bb..d4b4427b 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -64,6 +64,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1 autocmd BufNewFile,BufRead *.emblem set filetype=emblem autocmd FileType emblem set tabstop=2|set shiftwidth=2|set expandtab endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1 + +au BufNewFile,BufRead *.erl,*.hrl,rebar.config,*.app,*.app.src,*.yaws,*.xrl set ft=erlang +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 autocmd BufNewFile,BufRead *.git/{,modules/**/,worktrees/*/}{COMMIT_EDIT,TAG_EDIT,MERGE_,}MSG set ft=gitcommit |