summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim11
1 files changed, 9 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index de4665b2..186ba9da 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -795,9 +795,16 @@ if !has_key(s:disabled_packages, 'icalendar')
endif
if !has_key(s:disabled_packages, 'idris')
- au BufNewFile,BufRead *.idr setf idris
- au BufNewFile,BufRead *.lidr setf idris
au BufNewFile,BufRead idris-response setf idris
+ au! BufNewFile,BufRead *.idr call polyglot#DetectIdrFiletype()
+ au! BufNewFile,BufRead *.lidr call polyglot#DetectLidrFiletype()
+endif
+
+if !has_key(s:disabled_packages, 'idris2')
+ au BufNewFile,BufRead *.ipkg setf idris2
+ au BufNewFile,BufRead idris-response setf idris2
+ au! BufNewFile,BufRead *.idr call polyglot#DetectIdrFiletype()
+ au! BufNewFile,BufRead *.lidr call polyglot#DetectLidrFiletype()
endif
if !has_key(s:disabled_packages, 'ion')