Added new auto formating via Neoformat in go/gomod files

This commit is contained in:
Marcin Woźniak 2024-01-22 00:18:47 +01:00
parent 01e286e040
commit 329ab8e7f9
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -635,6 +635,8 @@ autocmd BufRead *.go set noexpandtab
autocmd BufWritePre *.go lua go_org_imports()
let g:go_def_mapping_enabled = 0
let g:go#fmt#autosave = v:true
autocmd BufWritePre *.go silent! undojoin | Neoformat
autocmd BufWritePre *.gomod silent! undojoin | Neoformat
" Conf
au BufNewFile,BufRead *.conf setfiletype conf