From 9caa678708a97022ba44f0bf86de22b07e9bde86 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 8 Jun 2019 13:33:25 +0200 Subject: Add ion shell support, closes #404 --- ftdetect/polyglot.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3