Compare commits

..

2 Commits

View File

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