mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Add mappings
This commit is contained in:
parent
cd69cbf667
commit
62c3402687
@ -29,11 +29,23 @@ function! SpaceVim#layers#checkers#config() abort
|
|||||||
call SpaceVim#mapping#space#def('nnoremap', ['e', 'L'], 'lopen', 'toggle showing the error list', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'L'], 'lopen', 'toggle showing the error list', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['e', 'p'], 'lprevious', 'previous-error', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'p'], 'lprevious', 'previous-error', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['e', 'N'], 'lNext', 'previous-error', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'N'], 'lNext', 'previous-error', 1)
|
||||||
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'v'], 'call call('
|
||||||
|
\ . string(s:_function('s:verify_syntax_setup')) . ', [])',
|
||||||
|
\ 'verify syntax setup', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'call call('
|
||||||
\ . string(s:_function('s:error_transient_state')) . ', [])',
|
\ . string(s:_function('s:error_transient_state')) . ', [])',
|
||||||
\ 'error-transient-state', 1)
|
\ 'error-transient-state', 1)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! s:verify_syntax_setup() abort
|
||||||
|
if g:spacevim_enable_neomake
|
||||||
|
NeomakeInfo
|
||||||
|
elseif g:spacevim_enable_ale
|
||||||
|
else
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! s:error_transient_state() abort
|
function! s:error_transient_state() abort
|
||||||
if g:spacevim_enable_neomake
|
if g:spacevim_enable_neomake
|
||||||
let has_errors = neomake#statusline#LoclistCounts()
|
let has_errors = neomake#statusline#LoclistCounts()
|
||||||
|
@ -51,7 +51,7 @@ and if you want to use syntastic, set this two options to 0.
|
|||||||
| `SPC e l` | Normal | display a list of all the errors |
|
| `SPC e l` | Normal | display a list of all the errors |
|
||||||
| `SPC e L` | Normal | display a list of all the errors and focus the errors buffer |
|
| `SPC e L` | Normal | display a list of all the errors and focus the errors buffer |
|
||||||
| `SPC e e` | Normal | explain the error at point |
|
| `SPC e e` | Normal | explain the error at point |
|
||||||
| `SPC e s` | Normal | set syntax checker |
|
| `SPC e s` | Normal | set syntax checker (TODO) |
|
||||||
| `SPC e S` | Normal | set syntax checker executable |
|
| `SPC e S` | Normal | set syntax checker executable (TODO) |
|
||||||
| `SPC e v` | Normal | verify syntax setup |
|
| `SPC e v` | Normal | verify syntax setup |
|
||||||
| `SPC t s` | Normal | toggle syntax |
|
| `SPC t s` | Normal | toggle syntax |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user