From 5b2bf3f273a7e26280390dc1751c29a56c65b273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 15 Jan 2023 13:08:19 +0100 Subject: [PATCH] Added the neoformat for the yaml files --- .config/nvim/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f21362e..b68c513 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -611,6 +611,7 @@ autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! autocmd BufRead,BufNewFile *.yaml let g:indentLine_enabled = 1 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 autocmd BufRead *.go set noexpandtab