Added black on save
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user