Moveed the GOLANG in the file

This commit is contained in:
Marcin Woźniak 2023-01-31 22:36:26 +01:00
parent 4d38340984
commit 81a604e39f
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -613,9 +613,10 @@ autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙'
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
" autocmd BufWritePre * silent! undojoin | Neoformat prettier
" Go
" GoLang
autocmd BufRead *.go set noexpandtab
autocmd BufWritePre *.go lua go_org_imports()
let g:go#fmt#autosave = v:true
" Conf
au BufNewFile,BufRead *.conf setfiletype conf
@ -630,9 +631,6 @@ au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
autocmd BufWritePre *.tf lua vim.lsp.buf.formatting_sync()
autocmd BufWritePre *.tfvars lua vim.lsp.buf.formatting_sync()
" GoLang
let g:go#fmt#autosave = v:true
" Automatically deletes all trailing whitespace and newlines at end of file on save.
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e