1
0
Fork 0

Set up ALE for python

This commit is contained in:
Jeremy Kaplan 2018-01-30 23:04:41 -08:00
commit f9f4bcb803

View file

@ -1,6 +1,9 @@
if &compatible
set nocompatible
endif
let &shell = '/bin/sh'
set runtimepath+=~/.config/nvim/plugins/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.config/nvim/plugins')
@ -110,6 +113,7 @@ set completeopt+=longest
let g:ale_sign_error = '!'
let g:ale_sign_warning = '?'
let g:ale_fix_on_save = 1
let g:ale_linters = {
\ '-': [],
\ 'go': [
@ -117,6 +121,16 @@ let g:ale_linters = {
\ 'go vet',
\ 'go build',
\ ],
\ 'python': [
\ 'flake8',
\ 'mypy',
\ ],
\}
let g:ale_fixers = {
\ '-': [],
\ 'python': [
\ 'yapf',
\ ],
\}
nmap <silent> <Leader>n <Plug>(ale_previous_wrap)
nmap <silent> <Leader>N <Plug>(ale_next_wrap)