mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Merge clear_errors branch
This commit is contained in:
commit
1ab709de30
@ -19,7 +19,9 @@ endfunction
|
|||||||
|
|
||||||
|
|
||||||
function! SpaceVim#layers#checkers#config() abort
|
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', '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', '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', 'n'], 'lnext', 'next-error', 1)
|
||||||
@ -85,3 +87,8 @@ else
|
|||||||
return function(substitute(a:fstr, 's:', s:_s, 'g'))
|
return function(substitute(a:fstr, 's:', s:_s, 'g'))
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
function! s:clear_errors() abort
|
||||||
|
sign unplace *
|
||||||
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user