mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-27 21:47:46 +01:00
nvim: cleanup autoformat section
This commit is contained in:
parent
901c6856af
commit
5445b3c088
@ -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 <F8> gggqG
|
||||
au FileType java setlocal formatprg=astyle\ --indent=spaces=2\ --style=google
|
||||
au FileType java setlocal shiftwidth=2 softtabstop=2
|
||||
au FileType markdown noremap <F8> :silent %!prettier --stdin-filepath % <CR>
|
||||
au FileType python setlocal formatprg=autopep8\ -
|
||||
au FileType tex,latex setlocal formatprg=latexindent\ -
|
||||
au FileType c,java,python,tex,latex noremap <F8> gggqG
|
||||
|
||||
|
||||
|
||||
""" Begin Plugin section
|
||||
|
Loading…
x
Reference in New Issue
Block a user