diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-10 17:15:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-10 17:15:29 +0200 |
commit | a6b0efd5301406adb44dfb12bfc73cf40f28b55b (patch) | |
tree | ff6ef884650dd709860cbcce29b44ec2cd1ffd9a /ftdetect/polyglot.vim | |
parent | 0de043adbc144510635702dadedc946e3c69f64e (diff) | |
download | vim-polyglot-a6b0efd5301406adb44dfb12bfc73cf40f28b55b.tar.gz vim-polyglot-a6b0efd5301406adb44dfb12bfc73cf40f28b55b.zip |
Add glsl and kotlin languages, fixes #72, #71
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 9 |
1 files changed, 9 insertions, 0 deletions
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 |