1
0
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:
wsdjeg 2022-10-23 14:32:47 +08:00
parent 70e3570082
commit b2af9f5479

View File

@ -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