vim: Add black

legacy
Simon Bruder 2020-06-23 23:39:39 +02:00
parent 4701cd3c14
commit b54a5cb4a8
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
autocmd BufWritePre * execute ':Black'

View File

@ -103,6 +103,9 @@ Plug 'junegunn/fzf'
Plug 'rust-lang/rust.vim'
let g:rustfmt_autosave = 1
" Black (python formatter)
Plug 'psf/black', { 'branch': 'stable' }
" LaTeX helpers
Plug 'lervag/vimtex'
let g:tex_flavor='latex'