1
0
mirror of https://github.com/amix/vimrc synced 2025-08-08 23:04:59 +08:00

Updated plugins

This commit is contained in:
amix
2017-09-02 12:43:18 +02:00
parent 3be3af28e5
commit 7fc202ec88
64 changed files with 1659 additions and 525 deletions

View File

@ -23,7 +23,9 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
let errorformat =
\ '%E%f:%l: could not compile,%-Z%p^,' .
\ '%A%f:%l:%c: %t%n: %m,' .
\ '%A%f:%l:%c: %t%n %m,' .
\ '%A%f:%l: %t%n: %m,' .
\ '%A%f:%l: %t%n %m,' .
\ '%-G%.%#'
@ -39,6 +41,7 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
" F*** are PyFlakes codes
" C*** are McCabe complexity messages
" N*** are naming conventions from pep8-naming
" H*** are OpenStack messages
if has_key(e, 'nr')
let e['text'] .= printf(' [%s%03d]', e['type'], e['nr'])
@ -50,11 +53,11 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
call remove(e, 'nr')
endif
if e['type'] =~? '\m^[CNW]'
if e['type'] =~? '\m^[CHNW]'
let e['subtype'] = 'Style'
endif
let e['type'] = e['type'] =~? '\m^[EFC]' ? 'E' : 'W'
let e['type'] = e['type'] =~? '\m^[EFHC]' ? 'E' : 'W'
endfor
return loclist

View File

@ -27,12 +27,12 @@ let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_tex_chktex_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args_after': '-q -v1' })
let makeprg = self.makeprgBuild({ 'args_after': ['-q', '-f', "%k:%n:%f:%l:%c:%m\n"] })
let errorformat =
\ '%EError %n in %f line %l: %m,' .
\ '%WWarning %n in %f line %l: %m,' .
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage %n in %f line %l: %m,' : '') .
\ '%EError:%n:%f:%l:%v:%m,' .
\ '%WWarning:%n:%f:%l:%v:%m,' .
\ (g:syntastic_tex_chktex_showmsgs ? '%WMessage:%n:%f:%l:%v:%m,' : '') .
\ '%Z%p^,' .
\ '%-G%.%#'

View File

@ -0,0 +1,23 @@
"============================================================================
"File: eslint.vim
"Description: Syntax checking plugin for syntastic
"Maintainer: LCD 47 <lcd047 at gmail dot com>
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists('g:loaded_syntastic_vue_eslint_checker')
finish
endif
let g:loaded_syntastic_vue_eslint_checker = 1
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'vue',
\ 'name': 'eslint',
\ 'redirect': 'javascript/eslint'})
" vim: set sw=4 sts=4 et fdm=marker:

View File

@ -0,0 +1,42 @@
"============================================================================
"File: pug_lint_vue.vim
"Description: Syntax checking plugin for syntastic using pug-lint-vue
" (https://github.com/sourceboat/pug-lint-vue)
"Maintainer: Tim Carry <tim at pixelastic dot com>
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================
if exists('g:loaded_syntastic_vue_pug_lint_vue_checker')
finish
endif
let g:loaded_syntastic_vue_pug_lint_vue_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_vue_pug_lint_vue_GetLocList() dict
let buf = bufnr('')
let makeprg = self.makeprgBuild({ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) })
let errorformat = '%\s%#%l:%c %m'
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'defaults': { 'bufnr': buf, 'type': 'E' } })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'vue',
\ 'name': 'pug_lint_vue',
\ 'exec': 'pug-lint-vue' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set sw=4 sts=4 et fdm=marker: