mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +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', 'p'], 'lprevious', '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('
|
||||
\ . string(s:_function('s:error_transient_state')) . ', [])',
|
||||
\ 'error-transient-state', 1)
|
||||
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
|
||||
if g:spacevim_enable_neomake
|
||||
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 and focus the errors buffer |
|
||||
| `SPC e e` | Normal | explain the error at point |
|
||||
| `SPC e s` | Normal | set syntax checker |
|
||||
| `SPC e S` | Normal | set syntax checker executable |
|
||||
| `SPC e s` | Normal | set syntax checker (TODO) |
|
||||
| `SPC e S` | Normal | set syntax checker executable (TODO) |
|
||||
| `SPC e v` | Normal | verify syntax setup |
|
||||
| `SPC t s` | Normal | toggle syntax |
|
||||
|
Loading…
Reference in New Issue
Block a user