1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +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)
let g:_spacevim_mappings_prefixs['z'] = {'name' : '+z prefix'}
call extend(g:_spacevim_mappings_prefixs['z'], g:_spacevim_mappings_z)
let g:_spacevim_mappings_prefixs['\'] = {'name' : '+Leader prefix'}
call extend(g:_spacevim_mappings_prefixs['\'], g:_spacevim_mappings)
let leader = get(g:, 'mapleader', '\')
let g:_spacevim_mappings_prefixs[leader] = {'name' : '+Leader prefix'}
call extend(g:_spacevim_mappings_prefixs[leader], g:_spacevim_mappings)
endfunction