Compare commits
2 Commits
4d38340984
...
f40feebca6
Author | SHA1 | Date | |
---|---|---|---|
f40feebca6 | |||
81a604e39f |
@ -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
|
||||
" autocmd BufWritePre * silent! undojoin | Neoformat prettier
|
||||
|
||||
" Go
|
||||
" GoLang
|
||||
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
|
||||
|
||||
" 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 *.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
|
||||
|
Loading…
Reference in New Issue
Block a user