1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Python import fixer, quickly open info pane

This commit is contained in:
2017-11-03 14:05:08 +01:00
parent 1bf763b971
commit aa1cefc78e

5
.vimrc
View File

@@ -190,7 +190,12 @@ let g:syntastic_python_pylint_post_args="--max-line-length=120 -d C0103,C0111"
" Code checker. For python, install flake8 or pylint, preferably in the " Code checker. For python, install flake8 or pylint, preferably in the
" virtualenv. For Django support, install pylint-django " virtualenv. For Django support, install pylint-django
Plugin 'w0rp/ale' Plugin 'w0rp/ale'
nmap <leader>= <Plug>(ale_fix)
" Quickly open the loclist to see syntax errors
nmap <leader>; :lopen<CR>
let g:ale_fixers = {}
" Python specific settings " Python specific settings
let g:ale_fixers.python = ['isort']
" No silly 80-char line limit. Sorry pep-8. Also, Django support. Disable 'invalid name', 'missing docstring' " No silly 80-char line limit. Sorry pep-8. Also, Django support. Disable 'invalid name', 'missing docstring'
let g:ale_python_pylint_options="--max-line-length=120 -d C0103,C0111" let g:ale_python_pylint_options="--max-line-length=120 -d C0103,C0111"
" Show errors or warnings in the statusline " Show errors or warnings in the statusline