summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2018-01-25 01:03:32 +0100
committerDaniel Hahler <git@thequod.de>2018-01-25 01:03:32 +0100
commitafb1281115ef7489894ba60d9bed2c365723a250 (patch)
tree4838d6e56dfd1ceb0c9670cb6fae13c582c112b1 /autoload/deoplete.vim
parenta338ca8bbee086cc7b9265ae181f22de86d38491 (diff)
downloaddeoplete.nvim-afb1281115ef7489894ba60d9bed2c365723a250.zip
Initialize logging in Deoplete.__init__
With something like the following you would not get logging from deoplete-jedi's server, since sources are initialized before logging gets setup: call deoplete#enable() call deoplete#enable_logging('DEBUG', '/tmp/deoplete.log') call deoplete#custom#source('jedi', 'is_debug_enabled', 1) let g:deoplete#sources#jedi#debug_server = 1 Initializing of sources happens for the "Init" event, whereas logging was only configured with the first RPC afterwards.
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim
index 31d8a47..e95d902 100644
--- a/autoload/deoplete.vim
+++ b/autoload/deoplete.vim
@@ -27,6 +27,7 @@ endfunction
function! deoplete#enable_logging(level, logfile) abort
let g:deoplete#_logging = {'level': a:level, 'logfile': a:logfile}
+ call deoplete#util#rpcnotify('deoplete_enable_logging', {})
endfunction
function! deoplete#manual_complete(...) abort