These are chat archives for Shougo/dein.vim

25th
Nov 2018
Francisco Lopes
@oblitum
Nov 25 2018 23:49
Hi @Shougo, I'll ask the same question I asked on NeoVim, no need to answer there. Is there a way in dein.vim to have a plugin hook that can differentiate after-install and post-update? In docs there's only mention of post-update hooks, but for one plugin I need to do different things on post-install and post-updates. VIM-PLUG supports this and I'm trying to migrate to dein. VIM-PLUG does it like Plug 'foo/bar', {'do': Function('baz')} where baz can be function! baz(info). The info callback parameter has a:info.status which I can check for 'installed', 'updated' or 'force' for when bang is used on PlugInstall!.
Another problem I'm facing with dein is that my vimrc is working fine with neovim, but when starting vim I'm getting errors as if one of the plugins didn't get fully initialized when a VimEnter autocmd I have on my vimrc runs. It's lightline, and on one VimEnter autocmd in my vimrc I do g:lightline#palette().normal.middle[0][1], but that generate errors of non existing s:lightline script var.
Francisco Lopes
@oblitum
Nov 25 2018 23:54
there's no issue when it's neovim, no idea why. I get no issues with vim-plug with same code.