From d833d146dc86bc31a8774f893b3a999ed920aab9 Mon Sep 17 00:00:00 2001 From: Nolan Prochnau Date: Sun, 9 Aug 2020 11:22:08 -0400 Subject: [PATCH] Fix typescript detection bug --- ftdetect/javascript.vim | 4 ++++ 1 file changed, 4 insertions(+) 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