Make typescript.tsx default filetype for tsx, fixes #409

This commit is contained in:
Adam Stankiewicz 2019-06-09 00:08:31 +02:00
parent 445e026010
commit 2edc785a5e
2 changed files with 8 additions and 0 deletions

View File

@ -91,3 +91,7 @@ augroup END
if (!exists('g:graphql_javascript_tags')) if (!exists('g:graphql_javascript_tags'))
let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL'] let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL']
endif endif
augroup filetypedetect
autocmd BufNewFile,BufReadPost *.tsx setlocal filetype=typescript.tsx
augroup END

View File

@ -91,6 +91,10 @@ augroup END
if (!exists('g:graphql_javascript_tags')) if (!exists('g:graphql_javascript_tags'))
let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL'] let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL']
endif endif
augroup filetypedetect
autocmd BufNewFile,BufReadPost *.tsx setlocal filetype=typescript.tsx
augroup END
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1 if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1
augroup filetypedetect augroup filetypedetect
" acpiasl, from asl.vim in martinlroth/vim-acpi-asl " acpiasl, from asl.vim in martinlroth/vim-acpi-asl