1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

perf(checkers): lazy load neomake

This commit is contained in:
Eric Wong 2024-06-25 23:14:15 +08:00
parent 7648ccb0b7
commit bff0092595

View File

@ -54,7 +54,12 @@ function! SpaceVim#layers#checkers#plugins() abort
endif
if g:spacevim_lint_engine ==# 'neomake'
call add(plugins, [g:_spacevim_root_dir . 'bundle/neomake', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
call add(plugins, [g:_spacevim_root_dir . 'bundle/neomake', {
\ 'merged' : 0,
\ 'loadconf' : 1,
\ 'on_cmd' : ['Neomake'],
\ 'on_func' : ['neomake#GetCurrentErrorMsg', 'neomake#statusline#LoclistCounts'],
\ 'loadconf_before' : 1}])
elseif g:spacevim_lint_engine ==# 'ale'
call add(plugins, [g:_spacevim_root_dir . 'bundle/ale', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}])
elseif g:spacevim_lint_engine ==# 'syntastic'