Add typescript to sw=2.

This commit is contained in:
Gea-Suan Lin
2023-11-13 16:30:50 +08:00
parent f59c7ae2d1
commit c4cc0bf2d1

View File

@@ -107,7 +107,7 @@ au BufNewFile,BufRead *.rb set shiftwidth=2
au BufNewFile,BufRead GNUmakefile set noexpandtab
au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
au FileType javascript,javascriptreact set shiftwidth=2
au FileType javascript,javascriptreact,typescript set shiftwidth=2
au FileType json,yaml set shiftwidth=2
autocmd BufEnter * silent! lcd %:p:h
autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"