Changes for syntastic python linting.

This commit is contained in:
Cyteen 2017-11-17 17:00:32 +00:00
parent abdac7fdd8
commit 6a5969d50d
2 changed files with 17 additions and 8 deletions

View File

@ -266,8 +266,17 @@ nmap <leader>e :Errors<CR>
" turn to next or previous errors, after open errors list " turn to next or previous errors, after open errors list
nmap <leader>n :lnext<CR> nmap <leader>n :lnext<CR>
nmap <leader>p :lprevious<CR> nmap <leader>p :lprevious<CR>
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" check also when just opened the file " check also when just opened the file
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_enable_signs = 1
" syntastic checker for javascript. " syntastic checker for javascript.
" eslint is the only tool support JSX. " eslint is the only tool support JSX.
@ -280,10 +289,6 @@ let g:syntastic_javascript_checkers = ['jshint']
" let g:syntastic_python_checkers = ["pylint"] " let g:syntastic_python_checkers = ["pylint"]
" let g:syntastic_python_checkers = ["flake8"] " let g:syntastic_python_checkers = ["flake8"]
let g:syntastic_python_checkers = ['prospector'] let g:syntastic_python_checkers = ['prospector']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_enable_signs = 1
" don't put icons on the sign column (it hides the vcs status icons of signify) " don't put icons on the sign column (it hides the vcs status icons of signify)
let g:syntastic_enable_signs = 1 let g:syntastic_enable_signs = 1

View File

@ -197,8 +197,16 @@ nmap <leader>e :Errors<CR>
" turn to next or previous errors, after open errors list " turn to next or previous errors, after open errors list
nmap <leader>n :lnext<CR> nmap <leader>n :lnext<CR>
nmap <leader>p :lprevious<CR> nmap <leader>p :lprevious<CR>
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" check also when just opened the file " check also when just opened the file
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_enable_signs = 1
" syntastic checker for javascript. " syntastic checker for javascript.
" eslint is the only tool support JSX. " eslint is the only tool support JSX.
@ -211,10 +219,6 @@ let g:syntastic_javascript_checkers = ['jshint']
" let g:syntastic_python_checkers = ["pylint"] " let g:syntastic_python_checkers = ["pylint"]
" let g:syntastic_python_checkers = ["flake8"] " let g:syntastic_python_checkers = ["flake8"]
let g:syntastic_python_checkers = ['prospector'] let g:syntastic_python_checkers = ['prospector']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_enable_signs = 1
" don't put icons on the sign column (it hides the vcs status icons of signify) " don't put icons on the sign column (it hides the vcs status icons of signify)
let g:syntastic_enable_signs = 1 let g:syntastic_enable_signs = 1