summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2018-03-12 18:55:34 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2018-03-12 18:55:34 +0900
commitc3c9406bfb4207c057d6a366c88466256a6ea2bd (patch)
tree04707ebdf6dc87611b88124e3ffdce2501b00906 /autoload/deoplete.vim
parentb09bb1f779745af935dedf37a43f20884876d0e2 (diff)
downloaddeoplete.nvim-c3c9406bfb4207c057d6a366c88466256a6ea2bd.zip
Add deoplete#send_event()
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim
index e95d902..34b7b5d 100644
--- a/autoload/deoplete.vim
+++ b/autoload/deoplete.vim
@@ -30,6 +30,11 @@ function! deoplete#enable_logging(level, logfile) abort
call deoplete#util#rpcnotify('deoplete_enable_logging', {})
endfunction
+function! deoplete#send_event(event) abort
+ call deoplete#util#rpcnotify('deoplete_on_event',
+ \ deoplete#init#_context(a:event, []))
+endfunction
+
function! deoplete#manual_complete(...) abort
if !deoplete#is_enabled()
return ''