1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 16:20:07 +08:00

Detect the custom leader

This commit is contained in:
wsdjeg 2018-01-05 13:16:50 +08:00
parent 4d645de9ce
commit dfee127e6f

View File

@ -339,8 +339,9 @@ function! SpaceVim#mapping#leader#defindKEYs() abort
call extend(g:_spacevim_mappings_prefixs['g'], g:_spacevim_mappings_g) call extend(g:_spacevim_mappings_prefixs['g'], g:_spacevim_mappings_g)
let g:_spacevim_mappings_prefixs['z'] = {'name' : '+z prefix'} let g:_spacevim_mappings_prefixs['z'] = {'name' : '+z prefix'}
call extend(g:_spacevim_mappings_prefixs['z'], g:_spacevim_mappings_z) call extend(g:_spacevim_mappings_prefixs['z'], g:_spacevim_mappings_z)
let g:_spacevim_mappings_prefixs['\'] = {'name' : '+Leader prefix'} let leader = get(g:, 'mapleader', '\')
call extend(g:_spacevim_mappings_prefixs['\'], g:_spacevim_mappings) let g:_spacevim_mappings_prefixs[leader] = {'name' : '+Leader prefix'}
call extend(g:_spacevim_mappings_prefixs[leader], g:_spacevim_mappings)
endfunction endfunction