1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:30:03 +08:00

Add errors mappings

This commit is contained in:
wsdjeg 2017-04-17 23:41:01 +08:00
parent d46d6424b9
commit 1f16e7b9aa
3 changed files with 21 additions and 1 deletions

View File

@ -102,7 +102,13 @@ function! s:generate_doc() abort
endfunction
function! s:fix_gruvbox() abort
hi VertSplit guibg=#282828 guifg=#181A1F
if &background ==# 'dark'
hi VertSplit guibg=#282828 guifg=#181A1F
hi EndOfBuffer guibg=#282828 guifg=#282828
else
hi VertSplit guibg=#fbf1c7 guifg=#e7e9e1
hi EndOfBuffer guibg=#fbf1c7 guifg=#fbf1c7
endif
hi SpaceVimLeaderGuiderGroupName cterm=bold ctermfg=175 gui=bold guifg=#d3869b
endfunction

View File

@ -14,3 +14,11 @@ function! SpaceVim#layers#checkers#plugins() abort
return plugins
endfunction
function! SpaceVim#layers#checkers#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'lopen', 'error-transient-state', 1)
call SpaceVim#mapping#space#def('nnoremap', ['e', 'n'], 'lnext', 'next-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)
endfunction

View File

@ -5,6 +5,12 @@ function! SpaceVim#mapping#space#init() abort
let g:_spacevim_mappings_space.t = {'name' : '+Toggle editor visuals'}
let g:_spacevim_mappings_space.a = {'name' : '+Applications'}
let g:_spacevim_mappings_space.b = {'name' : '+Buffers'}
nnoremap <silent> [SPC]bn :bnext<CR>
let g:_spacevim_mappings_space.b.n = ['bnext', 'next buffer']
nnoremap <silent> [SPC]bp :bp<CR>
nnoremap <silent> [SPC]bN :bN<CR>
let g:_spacevim_mappings_space.b.p = ['bp', 'previous buffer']
let g:_spacevim_mappings_space.b.N = ['bN', 'previous buffer']
let g:_spacevim_mappings_space.e = {'name' : '+Errors'}
let g:_spacevim_mappings_space.B = {'name' : '+Global-uffers'}
nnoremap <silent> [SPC]tn :<C-u>set nu!<CR>