summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-11-04 15:15:30 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-11-04 15:15:30 +0900
commitd64c8ad9ab5cf9b70e4fbbd245eff48b8e307b78 (patch)
treef78a78f88cc88cabcc0e2a5cd64c3f5dee2939b0 /autoload
parentfd2d15851a1b56a851954222cae9af0ac08b3a9c (diff)
downloaddeoplete.nvim-d64c8ad9ab5cf9b70e4fbbd245eff48b8e307b78.zip
Improve auto completion mapping
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/init.vim2
-rw-r--r--autoload/deoplete/mapping.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoload/deoplete/init.vim b/autoload/deoplete/init.vim
index a0a96a7..03ec0a0 100644
--- a/autoload/deoplete/init.vim
+++ b/autoload/deoplete/init.vim
@@ -216,7 +216,7 @@ function! deoplete#init#_context(event, sources) abort "{{{
\ 'bufnr': bufnr('%'),
\ 'bufname': bufname('%'),
\ 'cwd': getcwd(),
- \ 'start_complete': "\<Plug>()",
+ \ 'start_complete': "\<Plug>_",
\ 'vars': filter(copy(g:), "stridx(v:key, 'deoplete#') == 0"),
\ 'bufvars': filter(copy(b:), "stridx(v:key, 'deoplete_') == 0"),
\ 'custom': deoplete#custom#get(),
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim
index 4be1b6d..18156fa 100644
--- a/autoload/deoplete/mapping.vim
+++ b/autoload/deoplete/mapping.vim
@@ -5,7 +5,7 @@
"=============================================================================
function! deoplete#mapping#_init() abort "{{{
- inoremap <silent> <Plug>()
+ inoremap <silent> <Plug>_
\ <C-r>=deoplete#mapping#_do_complete(g:deoplete#_context)<CR>
inoremap <silent> <Plug>(deoplete_auto_refresh)
\ <C-r>=deoplete#refresh()<CR>