Set golang indent to my default value (4), not 2.

This commit is contained in:
Gea-Suan Lin
2024-01-12 03:36:47 +08:00
parent 50ee9da3b1
commit 4188572775

View File

@@ -103,7 +103,7 @@ au BufNewFile,BufRead *.vue set filetype=html
au BufNewFile,BufRead GNUmakefile set noexpandtab au BufNewFile,BufRead GNUmakefile set noexpandtab
au BufNewFile,BufRead Makefile set noexpandtab au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
au FileType dart,go,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2 au FileType dart,html,javascript,javascriptreact,json,ruby,typescript,yaml set shiftwidth=2
autocmd BufEnter * silent! lcd %:p:h autocmd BufEnter * silent! lcd %:p:h
autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"
map <C-n> :NERDTreeToggle<CR> map <C-n> :NERDTreeToggle<CR>