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:
parent
4d645de9ce
commit
dfee127e6f
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user