Set up ALE for python
This commit is contained in:
parent
0f009e0048
commit
f9f4bcb803
1 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue