mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-22 11:29:25 +08:00
29 lines
1.3 KiB
VimL
29 lines
1.3 KiB
VimL
""
|
|
" @section checkers, layer-checkers
|
|
" @parentsection layers
|
|
" SpaceVim uses neomake as default syntax checker.
|
|
|
|
function! SpaceVim#layers#checkers#plugins() abort
|
|
let plugins = []
|
|
|
|
if g:spacevim_enable_neomake
|
|
call add(plugins, ['neomake/neomake', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
|
|
else
|
|
call add(plugins, ['wsdjeg/syntastic', {'on_event': 'WinEnter', 'loadconf' : 1, 'merged' : 0}])
|
|
endif
|
|
|
|
return plugins
|
|
endfunction
|
|
|
|
|
|
function! SpaceVim#layers#checkers#config() abort
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'lopen', 'error-transient-state', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'c'], 'sign unplace *', 'clear all errors', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'h'], '', 'describe a syntax checker', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'v'], '', 'verify syntax checker setup', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'n'], 'lnext', 'next-error', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'l'], 'lopen', 'toggle showing the error list', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'p'], 'lprevious', 'previous-error', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'N'], 'lNext', 'previous-error', 1)
|
|
endfunction
|