mirror of
https://github.com/amix/vimrc
synced 2025-06-29 11:04:59 +08:00
Updated plugins and added vim-markdown
This commit is contained in:
@ -14,14 +14,21 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_python_mypy_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({})
|
||||
if !exists('s:mypy_new')
|
||||
" creative versioning: version string has changed from v0.4.6 to v0.470
|
||||
" XXX the test should be fine for now, since 470 > 4
|
||||
let s:mypy_new = syntastic#util#versionIsAtLeast(self.getVersion(), [0, 4, 5])
|
||||
endif
|
||||
|
||||
let errorformat = '%f:%l:%m'
|
||||
let makeprg = self.makeprgBuild({ 'args_after': (s:mypy_new ? '--show-column-numbers' : '') })
|
||||
|
||||
let errorformat =
|
||||
\ '%f:%l:%c:%t:%m,' .
|
||||
\ '%f:%l:%t:%m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'defaults': { 'type': 'E' },
|
||||
\ 'returns': [0, 1],
|
||||
\ 'preprocess': 'mypy' })
|
||||
endfunction
|
||||
|
Reference in New Issue
Block a user