comparison 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
comparison
equal deleted inserted replaced
669:d40ab65fd460 671:b7929dbc5bfe
120 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini 120 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini
121 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini 121 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini
122 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim 122 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim
123 " use `set filetype` to override default filetype=xml for *.ts files 123 " use `set filetype` to override default filetype=xml for *.ts files
124 autocmd BufNewFile,BufRead *.ts set filetype=typescript 124 autocmd BufNewFile,BufRead *.ts set filetype=typescript
125 autocmd BufNewFile,BufRead *.tsx set filetype=typescript 125 autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact
126 126
127 autocmd BufRead,BufNewFile *.nginx set ft=nginx 127 autocmd BufRead,BufNewFile *.nginx set ft=nginx
128 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx 128 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx
129 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx 129 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
130 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx 130 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx