summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Kwiatek <kwiatek.adam@poczta.fm>2020-05-29 21:10:18 +0200
committerGitHub <noreply@github.com>2020-05-29 21:10:18 +0200
commitde38ccabbd64e6b3354917a89e37d36407356a61 (patch)
tree389032f8306084047775e74037a33fd1657d6bdb
parentf0f49cf0fa8bbcb7f84e3ffe699a934142498b14 (diff)
downloadvim-polyglot-de38ccabbd64e6b3354917a89e37d36407356a61.tar.gz
vim-polyglot-de38ccabbd64e6b3354917a89e37d36407356a61.zip
Enable TypeScript in ftdetect (#496)
-rw-r--r--ftdetect/polyglot.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 229905ba..39ba7120 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -640,6 +640,7 @@ if index(g:polyglot_disabled, 'twig') == -1
endif
if index(g:polyglot_disabled, 'typescript') == -1
+ au BufNewFile,BufRead *.ts set ft=typescript
au BufNewFile,BufRead *.tsx set ft=typescriptreact
endif