comparison rc/vimrc @ 647:5bd223d5a97f

Use better typescript syntax
author nanaya <me@nanaya.pro>
date Wed, 16 Sep 2020 15:35:25 +0900
parents 7e4b3136f55e
children 2bb0035876b1
comparison
equal deleted inserted replaced
646:673c14e2a45e 647:5bd223d5a97f
117 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini 117 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini
118 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini 118 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini
119 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim 119 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim
120 " use `set filetype` to override default filetype=xml for *.ts files 120 " use `set filetype` to override default filetype=xml for *.ts files
121 autocmd BufNewFile,BufRead *.ts set filetype=typescript 121 autocmd BufNewFile,BufRead *.ts set filetype=typescript
122 autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact 122 autocmd BufNewFile,BufRead *.tsx set filetype=typescript
123 123
124 autocmd BufRead,BufNewFile *.nginx set ft=nginx 124 autocmd BufRead,BufNewFile *.nginx set ft=nginx
125 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx 125 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx
126 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx 126 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
127 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx 127 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx