diff options
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r-- | autoload/deoplete.vim | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim index c484dbf..107c670 100644 --- a/autoload/deoplete.vim +++ b/autoload/deoplete.vim @@ -25,17 +25,11 @@ function! deoplete#enable() abort return deoplete#init#_enable_handler() endfunction function! deoplete#disable() abort - if !deoplete#init#_channel_initialized() - return 1 - endif - + call deoplete#initialize() return deoplete#init#_disable_handler() endfunction function! deoplete#toggle() abort - if !deoplete#init#_channel_initialized() - return 1 - endif - + call deoplete#initialize() return deoplete#is_enabled() ? \ deoplete#init#_disable_handler() : \ deoplete#init#_enable_handler() |