summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim
index 944f0eb..ec01c42 100644
--- a/autoload/deoplete.vim
+++ b/autoload/deoplete.vim
@@ -8,4 +8,14 @@ function! deoplete#initialize() abort "{{{
return deoplete#init#enable()
endfunction"}}}
+function! deoplete#enable_logging(level, logfile) abort "{{{
+ if !deoplete#init#is_enabled()
+ " Enable to allow logging before completions start.
+ call deoplete#init#enable()
+ endif
+
+ call rpcrequest(g:deoplete#_channel_id,
+ \ 'deoplete_enable_logging', a:level, a:logfile)
+endfunction"}}}
+
" vim: foldmethod=marker