diff --git a/config/plugins/deoplete.vim b/config/plugins/deoplete.vim index da0d98289..f762ba73e 100644 --- a/config/plugins/deoplete.vim +++ b/config/plugins/deoplete.vim @@ -126,8 +126,13 @@ call deoplete#custom#option('sources', {'cs': ['omnisharp']}) call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy']) call deoplete#custom#source('file/include', 'matchers', ['matcher_head']) -inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>" -inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>" +if g:spacevim_autocomplete_parens && exists("g:loaded_delimitMate") + imap <expr><C-h> deoplete#smart_close_popup()."<Plug>delimitMateBS" + imap <expr><BS> deoplete#smart_close_popup()."<Plug>delimitMateBS" +else + inoremap <expr><C-h> deoplete#smart_close_popup()."\<C-h>" + inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>" +endif set isfname-== " vim:set et sw=2: