Added java formatter on save

This commit is contained in:
nnovak committed 2022-02-13 18:23:46 -08:00
1 parent 63b9de816f
commit 644c3a1964
1 file changed
+5
+5
View File
@@ -55,6 +55,11 @@ let g:mkdp_preview_options = {
\ 'disable_sync_scroll': 1,
\ }
" Run the Java formatter on save
augroup autoformat_settings
autocmd FileType java AutoFormatBuffer google-java-format
augroup END
" Run black formatter on save
autocmd BufWritePre *.py execute ':Black'