From 2edc785a5e21cf41960223b09bba8efc9276e777 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 9 Jun 2019 00:08:31 +0200 Subject: Make typescript.tsx default filetype for tsx, fixes #409 --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 6e779c99..7300fc1f 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -91,6 +91,10 @@ augroup END if (!exists('g:graphql_javascript_tags')) let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL'] endif + +augroup filetypedetect + autocmd BufNewFile,BufReadPost *.tsx setlocal filetype=typescript.tsx +augroup END if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1 augroup filetypedetect " acpiasl, from asl.vim in martinlroth/vim-acpi-asl -- cgit v1.2.3