1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:20:04 +08:00
SpaceVim/bundle/vim-teal/ftdetect/teal.vim

9 lines
209 B
VimL
Raw Normal View History

2022-04-23 17:28:53 +08:00
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()