diff options
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index afefe4e2..48c6e61e 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -586,6 +586,19 @@ au BufNewFile,BufRead *.lidr setf lidris augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1 + augroup filetypedetect + " ion, from ion.vim in vmchale/ion-vim +autocmd BufNewFile,BufRead ~/.config/ion/initrc set filetype=ion +autocmd BufNewFile,BufRead *.ion set filetype=ion + +autocmd BufNewFile,BufRead,StdinReadPost * + \ if getline(1) =~ '^#!.*\Wion\s*$' | + \ set ft=ion | + \ endif + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jasmine') == -1 augroup filetypedetect " jasmine, from jasmine.vim in glanotte/vim-jasmine |