Added the neoformat for the yaml files

This commit is contained in:
Marcin Woźniak 2023-01-15 13:08:19 +01:00
parent 01976cdecd
commit 5b2bf3f273
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -611,6 +611,7 @@ 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
" Go " Go
autocmd BufRead *.go set noexpandtab autocmd BufRead *.go set noexpandtab