mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:00:04 +08:00
Improve space mapping
This commit is contained in:
parent
f10b80b00e
commit
75cffccad6
@ -103,6 +103,7 @@ endfunction
|
||||
|
||||
function! s:fix_gruvbox() abort
|
||||
hi VertSplit guibg=#282828 guifg=#181A1F
|
||||
hi SpaceVimLeaderGuiderGroupName cterm=bold ctermfg=175 gui=bold guifg=#d3869b
|
||||
endfunction
|
||||
|
||||
" vim:set et sw=2:
|
||||
|
@ -23,7 +23,7 @@ function! SpaceVim#layers#git#config() abort
|
||||
nnoremap <silent> <Leader>gp :Gina push<CR>
|
||||
nnoremap <silent> <Leader>ga :Gina add %<CR>
|
||||
nnoremap <silent> <Leader>gA :Gina add .<CR>
|
||||
let g:_spacevim_mappings.g = {'name' : 'git function',
|
||||
let g:_spacevim_mappings.g = {'name' : '+git function',
|
||||
\ 'd' : ['Gina diff', 'git diff'],
|
||||
\ 's' : ['Gina status', 'git status'],
|
||||
\ 'c' : ['Gina commit', 'git commit'],
|
||||
|
@ -2,6 +2,7 @@ function! SpaceVim#mapping#space#init() abort
|
||||
nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide " "<CR>
|
||||
nmap <Space> [SPC]
|
||||
let g:_spacevim_mappings_space = {}
|
||||
let g:_spacevim_mappings_space.t = {'name' : 'Toggle editor visuals'}
|
||||
let g:_spacevim_mappings_space.t = {'name' : '+Toggle editor visuals'}
|
||||
nnoremap <silent> [SPC]tn :<C-u>set nu!<CR>
|
||||
let g:_spacevim_mappings_space.t.n = ['set nu!', 'toggle line number']
|
||||
endfunction
|
||||
|
@ -7,13 +7,13 @@ syn region LeaderGuideKeys start="\["hs=e+1 end="\]\s"he=s-1
|
||||
\ contained
|
||||
syn region LeaderGuideBrackets start="\(^\|\s\+\)\[" end="\]\s\+"
|
||||
\ contains=LeaderGuideKeys keepend
|
||||
syn match LeaderGuideGroupName /+\w\+/ contained
|
||||
syn match LeaderGuideGroupName /+[^\[^\]]\+/ contained
|
||||
syn region LeaderGuideDesc start="^" end="$"
|
||||
\ contains=LeaderGuideBrackets,LeaderGuideGroupName
|
||||
|
||||
hi def link LeaderGuideDesc Identifier
|
||||
hi def link LeaderGuideKeys Type
|
||||
hi def link LeaderGuideBrackets Delimiter
|
||||
hi def link LeaderGuideGroupName GruvboxPurpleBold
|
||||
hi def link LeaderGuideGroupName SpaceVimLeaderGuiderGroupName
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user