Compare commits

...

2 Commits

View File

@ -607,7 +607,7 @@ let g:shfmt_opt="-ci"
" Python " Python
autocmd BufRead,BufNewFile *.py set textwidth=0 autocmd BufRead,BufNewFile *.py set textwidth=0
autocmd BufRead,BufNewFile *.py set fo-=t autocmd BufRead,BufNewFile *.py set fo-=t
autocmd BufWritePre * silent! undojoin | Neoformat black autocmd BufWritePre *.py silent! undojoin | Neoformat black
" Newsboat " Newsboat
autocmd BufRead,BufNewFile urls set textwidth=0 autocmd BufRead,BufNewFile urls set textwidth=0
@ -628,13 +628,15 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1 autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1
autocmd BufRead,BufNewFile *.yaml let g:indentLine_char = '⦙' 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 *.yaml silent! undojoin | Neoformat prettier
" GoLang " 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_def_mapping_enabled = 0
let g:go#fmt#autosave = v:true let g:go#fmt#autosave = v:true
autocmd BufWritePre *.go silent! undojoin | Neoformat
autocmd BufWritePre *.gomod silent! undojoin | Neoformat
" Conf " Conf
au BufNewFile,BufRead *.conf setfiletype conf au BufNewFile,BufRead *.conf setfiletype conf
@ -651,6 +653,7 @@ autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
" Markdown " Markdown
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
autocmd BufWritePre *.md silent! undojoin | Neoformat
" 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