diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-06-15 08:51:53 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-06-15 08:51:53 +0900 |
commit | eab0bf66304eb518fc78abcf14cbd7ea23bd9483 (patch) | |
tree | 18476af82d9f9516dd8b889eae48b92107b93113 /plugin | |
parent | 8923169731dcbbf7538be732b94a1f51d581772f (diff) | |
download | deoplete.nvim-eab0bf66304eb518fc78abcf14cbd7ea23bd9483.zip |
Fix #495 lazy initialization
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/deoplete.vim | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugin/deoplete.vim b/plugin/deoplete.vim index e238851..be75831 100644 --- a/plugin/deoplete.vim +++ b/plugin/deoplete.vim @@ -11,15 +11,5 @@ let g:loaded_deoplete = 1 " Global options definition. if get(g:, 'deoplete#enable_at_startup', 0) - function! s:deoplete_lazy_enable() - autocmd! deoplete_lazy_enable - augroup! deoplete_lazy_enable - call deoplete#enable() - endfunction - augroup deoplete_lazy_enable - autocmd! - autocmd CursorHold * call s:deoplete_lazy_enable() - autocmd InsertEnter * call s:deoplete_lazy_enable() - \ | silent! doautocmd <nomodeline> deoplete InsertEnter - augroup END + call deoplete#enable() endif |