diff options
| -rw-r--r-- | config.vim | 4 | ||||
| -rw-r--r-- | ftdetect/polyglot.vim | 4 | 
2 files changed, 8 insertions, 0 deletions
| @@ -91,3 +91,7 @@ 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 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 | 
