summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-08 13:33:25 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-08 13:33:25 +0200
commit9caa678708a97022ba44f0bf86de22b07e9bde86 (patch)
tree0a27834b06ae7894278a752e7875b64d3a09e5dd /ftdetect
parent8f2a71643a90a8aff03e69ba2b1f8fdb02cebdcf (diff)
downloadvim-polyglot-9caa678708a97022ba44f0bf86de22b07e9bde86.tar.gz
vim-polyglot-9caa678708a97022ba44f0bf86de22b07e9bde86.zip
Add ion shell support, closes #404
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim13
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