mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
Merge clear_errors branch
This commit is contained in:
commit
1ab709de30
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user