comparison rc/vimrc @ 630:32fefb633034

Add support for tsx Not sure how it worked before.
author nanaya <me@nanaya.pro>
date Fri, 18 Oct 2019 15:43:00 +0900
parents ffc095d36df2
children f382ac2f585e
comparison
equal deleted inserted replaced
629:035b23bb15da 630:32fefb633034
115 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini 115 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini
116 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini 116 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini
117 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim 117 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim
118 " use `set filetype` to override default filetype=xml for *.ts files 118 " use `set filetype` to override default filetype=xml for *.ts files
119 autocmd BufNewFile,BufRead *.ts set filetype=typescript 119 autocmd BufNewFile,BufRead *.ts set filetype=typescript
120 " use `setfiletype` to not override any other plugins like ianks/vim-tsx 120 autocmd BufNewFile,BufRead *.tsx set filetype=typescript.tsx
121 autocmd BufNewFile,BufRead *.tsx setfiletype typescript
122 121
123 autocmd BufRead,BufNewFile *.nginx set ft=nginx 122 autocmd BufRead,BufNewFile *.nginx set ft=nginx
124 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx 123 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx
125 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx 124 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
126 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx 125 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx