diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-08-18 14:40:17 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2018-08-18 14:40:17 +0900 |
commit | 22da6e30381bac6d1aace0c36d6e7d7592aecf64 (patch) | |
tree | b3925cc2c6dca904c3e6310058d19c01ff1ae331 /autoload/deoplete.vim | |
parent | dc86f96f4f9ccb4214f419646e42c4fbe3287ba3 (diff) | |
download | deoplete.nvim-22da6e30381bac6d1aace0c36d6e7d7592aecf64.zip |
Fix #826 deoplete initialization
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r-- | autoload/deoplete.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim index a11c18f..c484dbf 100644 --- a/autoload/deoplete.vim +++ b/autoload/deoplete.vim @@ -11,7 +11,15 @@ function! deoplete#is_enabled() abort return deoplete#init#_is_handler_enabled() endfunction function! deoplete#enable() abort - if deoplete#initialize() + if has('vim_starting') + augroup deoplete + autocmd! + autocmd VimEnter * call deoplete#enable() + augroup END + return 1 + endif + + if deoplete#initialize() && deoplete#is_enabled() return 1 endif return deoplete#init#_enable_handler() |