Added black on save

This commit is contained in:
2022-02-11 20:29:22 -08:00
parent e8d6856d29
commit 6960c0f9e0
+4 -1
View File
@@ -50,11 +50,14 @@ let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>" let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>" let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" Disable the scroll sync in the preview " Disable the scroll sync in the markdown preview
let g:mkdp_preview_options = { let g:mkdp_preview_options = {
\ 'disable_sync_scroll': 1, \ 'disable_sync_scroll': 1,
\ } \ }
" Run black formatter on save
autocmd BufWritePre *.py execute ':Black'
" Python syntax config " Python syntax config
let g:python_highlight_all = 1 let g:python_highlight_all = 1