Automatically run black and isort on shit
This commit is contained in:
@@ -28,6 +28,14 @@ set foldmethod=syntax
|
|||||||
"nnoremap <space> za
|
"nnoremap <space> za
|
||||||
set nofoldenable " Fuck autofolding
|
set nofoldenable " Fuck autofolding
|
||||||
|
|
||||||
|
" ALE
|
||||||
|
let g:ale_fixers = {
|
||||||
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
|
\ 'python': ['black', 'isort'],
|
||||||
|
\}
|
||||||
|
let g:ale_python_isort_options = '--profile black'
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
|
||||||
" Lightline
|
" Lightline
|
||||||
set noshowmode
|
set noshowmode
|
||||||
let g:lightline = {
|
let g:lightline = {
|
||||||
|
Reference in New Issue
Block a user