From b2af9f54792d990effddcf1e04e03f5e50413260 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 23 Oct 2022 14:32:47 +0800 Subject: [PATCH] fix(leader): fix default_custom_leader option close https://github.com/SpaceVim/SpaceVim/issues/4710 --- autoload/SpaceVim/mapping/space.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim/mapping/space.vim b/autoload/SpaceVim/mapping/space.vim index a7249b2fb..888ae3df4 100644 --- a/autoload/SpaceVim/mapping/space.vim +++ b/autoload/SpaceVim/mapping/space.vim @@ -37,10 +37,8 @@ function! SpaceVim#mapping#space#init() abort if s:has_map_to_spc() return endif - if g:spacevim_default_custom_leader ==# '' - nnoremap [SPC] :LeaderGuide ' ' - vnoremap [SPC] :LeaderGuideVisual ' ' - endif + nnoremap [SPC] :LeaderGuide ' ' + vnoremap [SPC] :LeaderGuideVisual ' ' 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