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:
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)
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user