From a6b0efd5301406adb44dfb12bfc73cf40f28b55b Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 10 Oct 2015 17:15:29 +0200 Subject: Add glsl and kotlin languages, fixes #72, #71 --- ftdetect/polyglot.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index c7142ff5..28ba2b76 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -85,6 +85,10 @@ autocmd BufNewFile,BufRead * \ set filetype=gitsendemail | \ endif endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1 + +autocmd! BufNewFile,BufRead *.glsl,*.geom,*.vert,*.frag,*.gsh,*.vsh,*.fsh,*.vs,*.fs,*.gs,*.tcs,*.tes set filetype=glsl +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 let s:current_fileformats = '' @@ -140,6 +144,11 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 au BufRead,BufNewFile *.jl let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp<" au BufRead,BufNewFile *.jl set filetype=julia endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1 + +autocmd BufNewFile,BufRead *.kt setfiletype kotlin +autocmd BufNewFile,BufRead *.kts setfiletype kotlin +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 autocmd BufNewFile,BufRead *.less setf less -- cgit v1.2.3