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