mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:30:04 +08:00
fix(leader): fix default_custom_leader option
close https://github.com/SpaceVim/SpaceVim/issues/4710
This commit is contained in:
parent
70e3570082
commit
b2af9f5479
@ -37,10 +37,8 @@ function! SpaceVim#mapping#space#init() abort
|
||||
if s:has_map_to_spc()
|
||||
return
|
||||
endif
|
||||
if g:spacevim_default_custom_leader ==# '<Space>'
|
||||
nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide ' '<CR>
|
||||
vnoremap <silent><nowait> [SPC] :<c-u>LeaderGuideVisual ' '<CR>
|
||||
endif
|
||||
nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide ' '<CR>
|
||||
vnoremap <silent><nowait> [SPC] :<c-u>LeaderGuideVisual ' '<CR>
|
||||
exe printf('nmap %s [SPC]', g:spacevim_default_custom_leader)
|
||||
exe printf('vmap %s [SPC]', g:spacevim_default_custom_leader)
|
||||
if !g:spacevim_vimcompatible && g:spacevim_enable_language_specific_leader
|
||||
|
Loading…
Reference in New Issue
Block a user