1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/bundle/vim-teal/ftdetect/teal.vim
2022-04-23 17:28:53 +08:00

9 lines
209 B
VimL

fun! s:DetectTL()
if getline(1) =~# '^#!.*/bin/env\s\+tl\>'
setfiletype teal
endif
endfun
autocmd BufRead,BufNewFile *.tl setlocal filetype=teal
autocmd BufNewFile,BufRead * call s:DetectTL()