diff --git a/autoload/SpaceVim/layers/checkers.vim b/autoload/SpaceVim/layers/checkers.vim index 66b7555fb..ab08e620a 100644 --- a/autoload/SpaceVim/layers/checkers.vim +++ b/autoload/SpaceVim/layers/checkers.vim @@ -19,7 +19,9 @@ endfunction function! SpaceVim#layers#checkers#config() abort - call SpaceVim#mapping#space#def('nnoremap', ['e', 'c'], 'sign unplace *', 'clear all errors', 1) + call SpaceVim#mapping#space#def('nnoremap', ['e', 'c'], 'call call(' + \ . string(s:_function('s:clear_errors')) . ', [])', + \ '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) @@ -85,3 +87,8 @@ else return function(substitute(a:fstr, 's:', s:_s, 'g')) endfunction endif + + +function! s:clear_errors() abort + sign unplace * +endfunction