mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Fix key_sequence option
This commit is contained in:
parent
a22284b4fb
commit
f9fb54fb7c
@ -194,7 +194,7 @@ function! SpaceVim#layers#autocomplete#config() abort
|
||||
elseif g:spacevim_snippet_engine ==# 'ultisnips'
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Unite ultisnips', 'insert snippets', 1)
|
||||
endif
|
||||
if !empty(g:_spacevim_key_sequence)
|
||||
if !empty(g:_spacevim_key_sequence) && g:_spacevim_key_sequence !=# 'nil'
|
||||
if g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence
|
||||
augroup spacevim_layer_autocomplete
|
||||
autocmd!
|
||||
|
@ -125,7 +125,9 @@ call deoplete#custom#option('sources', {'cs': ['omnisharp']})
|
||||
" public settings
|
||||
call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
|
||||
call deoplete#custom#source('file/include', 'matchers', ['matcher_head'])
|
||||
if !empty(g:_spacevim_key_sequence) && g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence
|
||||
if !empty(g:_spacevim_key_sequence)
|
||||
\ && g:_spacevim_key_sequence !=# 'nil'
|
||||
\ && g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence
|
||||
exe printf('inoremap <silent><expr>%s deoplete#manual_complete()', g:_spacevim_key_sequence)
|
||||
endif
|
||||
|
||||
|
@ -69,6 +69,8 @@ inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
|
||||
inoremap <expr><C-y> neocomplete#close_popup()
|
||||
inoremap <expr><C-e> neocomplete#cancel_popup()
|
||||
|
||||
if !empty(g:_spacevim_key_sequence) && g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence
|
||||
if !empty(g:_spacevim_key_sequence)
|
||||
\ && g:_spacevim_key_sequence !=# 'nil'
|
||||
\ && g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence
|
||||
exe printf('imap <silent>%s <Plug>(neocomplete_auto_refresh)', g:_spacevim_key_sequence)
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user