Skip to content

Commit

Permalink
Fix SPC e n/p key binding (#3890)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Oct 11, 2020
1 parent b5d58d6 commit ea57d3f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 16 deletions.
32 changes: 24 additions & 8 deletions autoload/SpaceVim/layers/checkers.vim
Expand Up @@ -159,11 +159,19 @@ function! s:jump_to_next_error() abort
lnext
catch
try
cnext
ll
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
try
cnext
catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry
endtry
endfunction
Expand All @@ -173,11 +181,19 @@ function! s:jump_to_previous_error() abort
lprevious
catch
try
cprevious
ll
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
try
cprevious
catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry
endtry
endfunction
Expand Down
32 changes: 24 additions & 8 deletions autoload/SpaceVim/layers/lsp.vim
Expand Up @@ -162,11 +162,19 @@ function! s:jump_to_next_error() abort
lnext
catch
try
cnext
ll
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
try
cnext
catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry
endtry
endfunction
Expand All @@ -176,11 +184,19 @@ function! s:jump_to_previous_error() abort
lprevious
catch
try
cprevious
ll
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
try
cprevious
catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry
endtry
endfunction
Expand Down

0 comments on commit ea57d3f

Please sign in to comment.