added fixers to vimrc and python files
This commit is contained in:
parent
66cf829ee3
commit
a8ea2d4b07
|
@ -34,3 +34,7 @@ set include=^\\s*\\(from\\\|import\\)\\s*\\zs\\(\\S\\+\\s\\{-}\\)*\\ze\\($\\\|\
|
||||||
" setlocal includeexpr=PyInclude(v:fname)
|
" setlocal includeexpr=PyInclude(v:fname)
|
||||||
setlocal define=^\\s*\\<\\(def\\\|class\\)\\>
|
setlocal define=^\\s*\\<\\(def\\\|class\\)\\>
|
||||||
|
|
||||||
|
let g:ale_fixers = {
|
||||||
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
|
\ 'python': ['black', 'add_blank_lines_for_python_control_statements'],
|
||||||
|
\}
|
||||||
|
|
|
@ -269,6 +269,12 @@ set completeopt+=longest,menu,menuone,preview,noselect,noinsert
|
||||||
" endif
|
" endif
|
||||||
" endfunction
|
" endfunction
|
||||||
|
|
||||||
|
let g:ale_fixers = {
|
||||||
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
|
\}
|
||||||
|
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
" undotree
|
" undotree
|
||||||
|
|
Loading…
Reference in New Issue