mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:00:05 +08:00
Hotfix: key binding guide is broken
This commit is contained in:
parent
ebbdfcf5e9
commit
71754c14ab
@ -112,7 +112,7 @@ function! s:start_parser(key, dict) abort " {{{
|
||||
if a:key ==# '[KEYs]'
|
||||
return
|
||||
endif
|
||||
let key = a:key ==? g:spacevim_default_custom_leader ? ' ' : a:key
|
||||
let key = a:key ==? ' ' ? '<Space>' : a:key
|
||||
|
||||
0verbose let readmap = s:CMP.execute('map ' . key, 'silent')
|
||||
|
||||
|
@ -34,8 +34,10 @@ function! SpaceVim#mapping#space#init() abort
|
||||
if s:has_map_to_spc()
|
||||
return
|
||||
endif
|
||||
nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide g:spacevim_default_custom_leader<CR>
|
||||
vnoremap <silent><nowait> [SPC] :<c-u>LeaderGuideVisual g:spacevim_default_custom_leader<CR>
|
||||
if g:spacevim_default_custom_leader ==# '<Space>'
|
||||
nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide ' '<CR>
|
||||
vnoremap <silent><nowait> [SPC] :<c-u>LeaderGuideVisual ' '<CR>
|
||||
endif
|
||||
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