mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
test(guide): fix guide test
This commit is contained in:
parent
37e6806081
commit
344cd372d4
@ -40,6 +40,11 @@ function! SpaceVim#layers#chinese#plugins() abort
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#chinese#config() abort
|
||||
if has_key(g:_spacevim_mappings_space.x, 't')
|
||||
let g:_spacevim_mappings_space.x.t.name = '+Transpose/Translate'
|
||||
else
|
||||
let g:_spacevim_mappings_space.x.t = {'name' : '+Translate'}
|
||||
endif
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 't'], 'Translate' , 'translate-current-word' , 1)
|
||||
if !SpaceVim#layers#isLoaded('edit')
|
||||
let g:_spacevim_mappings_space.x.g = {'name' : '+Grammarous'}
|
||||
|
@ -353,7 +353,11 @@ function! SpaceVim#layers#edit#config() abort
|
||||
\ 'move-text-up(enter-transient-state)', 1)
|
||||
|
||||
" transpose
|
||||
let g:_spacevim_mappings_space.x.t = {'name' : '+Transpose/Translate'}
|
||||
if has_key(g:_spacevim_mappings_space.x, 't')
|
||||
let g:_spacevim_mappings_space.x.t.name = '+Transpose/Translate'
|
||||
else
|
||||
let g:_spacevim_mappings_space.x.t = {'name' : '+Transpose'}
|
||||
endif
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'c'], 'call call('
|
||||
\ . string(s:_function('s:transpose_with_previous')) . ', ["character"])',
|
||||
\ 'swap-current-character-with-previous-one', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user