diff --git a/ftdetect/javascript.vim b/ftdetect/javascript.vim index 00487326..3c76f261 100644 --- a/ftdetect/javascript.vim +++ b/ftdetect/javascript.vim @@ -1,4 +1,8 @@ fun! s:SelectJavascript() + if expand('%:e') ==# 'ts' + return + endif + if getline(1) =~# '^#!.*/bin/\%(env\s\+\)\?node\>' set ft=javascript endif