1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:30:05 +08:00

test(guide): fix guide test

This commit is contained in:
wsdjeg 2023-07-03 22:38:52 +08:00
parent 37e6806081
commit 344cd372d4
2 changed files with 10 additions and 1 deletions

View File

@ -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'}

View File

@ -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)