diff rc/vimrc @ 671:b7929dbc5bfe

Correct type for tsx
author nanaya <me@nanaya.pro>
date Tue, 05 Apr 2022 13:51:43 +0900
parents 6887e66d83b4
children a34ee4c7d0ce
line wrap: on
line diff
--- a/rc/vimrc	Sat Dec 11 19:04:08 2021 +0900
+++ b/rc/vimrc	Tue Apr 05 13:51:43 2022 +0900
@@ -122,7 +122,7 @@
   " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim
   " use `set filetype` to override default filetype=xml for *.ts files
   autocmd BufNewFile,BufRead *.ts  set filetype=typescript
-  autocmd BufNewFile,BufRead *.tsx set filetype=typescript
+  autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact
 
   autocmd BufRead,BufNewFile *.nginx set ft=nginx
   autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx