summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2017-10-15 19:20:24 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2017-10-15 19:20:24 +0900
commit7d3ce4181fd64b98e5e1045fa00953e9671fe69d (patch)
tree974afe09089b028db444704b80cf4791bc496cf0 /plugin
parentae31423db42d0b2ea4100300014237e4a3618aca (diff)
downloaddeoplete.nvim-7d3ce4181fd64b98e5e1045fa00953e9671fe69d.zip
Fix lazy loading problem
Diffstat (limited to 'plugin')
-rw-r--r--plugin/deoplete.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/deoplete.vim b/plugin/deoplete.vim
index bc9c822..7377e7b 100644
--- a/plugin/deoplete.vim
+++ b/plugin/deoplete.vim
@@ -11,5 +11,9 @@ let g:loaded_deoplete = 1
" Global options definition.
if get(g:, 'deoplete#enable_at_startup', 0)
- autocmd VimEnter * call deoplete#enable()
+ if has('vim_starting')
+ autocmd VimEnter * call deoplete#enable()
+ else
+ call deoplete#enable()
+ endif
endif