mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 07:40:05 +08:00
Add errors mappings
This commit is contained in:
parent
d46d6424b9
commit
1f16e7b9aa
@ -102,7 +102,13 @@ function! s:generate_doc() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:fix_gruvbox() abort
|
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
|
hi SpaceVimLeaderGuiderGroupName cterm=bold ctermfg=175 gui=bold guifg=#d3869b
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -14,3 +14,11 @@ function! SpaceVim#layers#checkers#plugins() abort
|
|||||||
|
|
||||||
return plugins
|
return plugins
|
||||||
endfunction
|
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
|
||||||
|
@ -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.t = {'name' : '+Toggle editor visuals'}
|
||||||
let g:_spacevim_mappings_space.a = {'name' : '+Applications'}
|
let g:_spacevim_mappings_space.a = {'name' : '+Applications'}
|
||||||
let g:_spacevim_mappings_space.b = {'name' : '+Buffers'}
|
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.e = {'name' : '+Errors'}
|
||||||
let g:_spacevim_mappings_space.B = {'name' : '+Global-uffers'}
|
let g:_spacevim_mappings_space.B = {'name' : '+Global-uffers'}
|
||||||
nnoremap <silent> [SPC]tn :<C-u>set nu!<CR>
|
nnoremap <silent> [SPC]tn :<C-u>set nu!<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user