From 5445b3c088bb666ed9ac688dc76dad47cbb054a6 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 1 Nov 2020 20:37:09 +0100 Subject: [PATCH] nvim: cleanup autoformat section --- .config/nvim/init.vim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 978729a..bee4436 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -113,13 +113,14 @@ autocmd BufRead,BufNewFile *.tex set filetype=tex autocmd BufRead,BufNewFile *.h set filetype=c " formatting -au FileType python setlocal formatprg=autopep8\ - -au FileType java setlocal formatprg=astyle\ --indent=spaces=2\ --style=google -autocmd FileType java setlocal shiftwidth=2 softtabstop=2 au FileType c setlocal formatprg=astyle\ --mode=c -au FileType tex,latex setlocal formatprg=latexindent\ - -autocmd FileType java,python,c,tex,latex noremap gggqG +au FileType java setlocal formatprg=astyle\ --indent=spaces=2\ --style=google +au FileType java setlocal shiftwidth=2 softtabstop=2 au FileType markdown noremap :silent %!prettier --stdin-filepath % +au FileType python setlocal formatprg=autopep8\ - +au FileType tex,latex setlocal formatprg=latexindent\ - +au FileType c,java,python,tex,latex noremap gggqG + """ Begin Plugin section