2017-08-04 10:15:33 +08:00
|
|
|
set statusline+=%#warningmsg#
|
|
|
|
set statusline+=%{SyntasticStatuslineFlag()}
|
|
|
|
set statusline+=%*
|
|
|
|
|
|
|
|
let g:syntastic_aggregate_errors = 1
|
|
|
|
let g:syntastic_always_populate_loc_list = 0
|
2017-08-02 00:15:51 +08:00
|
|
|
let g:syntastic_auto_jump=0 "automatically jump to the error when saving the file
|
|
|
|
let g:syntastic_auto_loc_list=1 "show the error list automatically
|
|
|
|
let g:syntastic_check_on_open = 1
|
|
|
|
let g:syntastic_check_on_wq = 0
|
2017-08-04 10:15:33 +08:00
|
|
|
let g:syntastic_enable_signs=1 "mark syntax errors with :signs
|
|
|
|
let g:syntastic_quiet_messages = {'level': 'warnings'} "don't care about warnings
|
2015-03-25 05:17:24 +08:00
|
|
|
|
2016-07-22 23:55:04 +08:00
|
|
|
" Default to eslint. If you need jshint, you can override this in
|
|
|
|
" ~/.vimrc.after
|
|
|
|
let g:syntastic_javascript_checkers = ['eslint']
|
2017-03-10 19:24:41 +08:00
|
|
|
let g:syntastic_python_checkers = ['flake8']
|
2017-05-12 18:27:04 +08:00
|
|
|
let g:syntastic_python_flake8_args='--ignore=F401,F403,F405,W0401,E501'
|
|
|
|
let g:syntastic_python_pylint_post_args="--max-line-length=160"
|
2017-08-04 10:15:33 +08:00
|
|
|
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
|
2017-08-02 00:15:51 +08:00
|
|
|
|
2015-03-25 05:17:24 +08:00
|
|
|
" I have no idea why this is not working, as it used to
|
|
|
|
" be a part of syntastic code but was apparently removed
|
|
|
|
" This will make syntastic find the correct ruby specified by mri
|
|
|
|
function! s:FindRubyExec()
|
|
|
|
if executable("rvm")
|
|
|
|
return system("rvm tools identifier")
|
|
|
|
endif
|
|
|
|
|
|
|
|
return "ruby"
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
if !exists("g:syntastic_ruby_exec")
|
|
|
|
let g:syntastic_ruby_exec = s:FindRubyExec()
|
|
|
|
endif
|