These are chat archives for Shougo/dein.vim

23rd
Mar 2016
Wang Shidong
@wsdjeg
Mar 23 2016 17:10
why hooks do not work?
I have the autocmd ,but it does not work,
:autocmd User                                                                                                                           
--- Auto-Commands ---                                                                                                                   
User                                                                                                                                    
    dein#source#unite.vim                                                                                                               
              call zvim#util#source_rc('plugins/unite.vim')                                                                             
    dein#source#vim-ref                                                                                                                 
              call zvim#util#source_rc('plugins/vim-ref.vim')                                                                           
    dein#source#unite-gtags                                                                                                             
              call zvim#util#source_rc('plugins/unite-gtags.vim')                                                                       
    dein#source#ctrlsf.vim                                                                                                              
              call zvim#util#source_rc('plugins/ctrlsf.vim')                                                                            
    dein#source#vimfiler.vim                                                                                                            
              call zvim#util#source_rc('plugins/vimfiler.vim')                                                                          
    dein#source#ctrlp.vim                                                                                                               
              call zvim#util#source_rc('plugins/ctrlp.vim')                                                                             
    dein#source#deoplete.nvim                                                                                                           
              call zvim#util#source_rc('plugins/deoplete.vim')                                                                          
    dein#source#vim-airline                                                                                                             
              call zvim#util#source_rc('plugins/vim-airline.vim')                                                                       
    dein#source#syntastic                                                                                                               
              call zvim#util#source_rc('plugins/syntastic.vim')                                                                         
    dein#source#goyo.vim                                                                                                                
              call zvim#util#source_rc('plugins/goyo.vim')                                                                              
    dein#source#nerdtree                                                                                                                
              call zvim#util#source_rc('plugins/nerdtree.vim')                                                                          
    dein#source#taglist.vim                                                                                                             
              call zvim#util#source_rc('plugins/taglist.vim')                                                                           
fugitive_utility  User
and if I run call zvim#util#source_rc('plugins/unite.vim') ,unite works well ,so I think maybe dein do not exec this autocmd
Shougo
@Shougo
Mar 23 2016 22:25
@wsdjeg
Please see it
Shougo/dein.vim#50
Wang Shidong
@wsdjeg
Mar 23 2016 23:23
I am not using toml
Shougo
@Shougo
Mar 23 2016 23:24
This is not yaml depends beahvior
Wang Shidong
@wsdjeg
Mar 23 2016 23:24
    exec "autocmd User dein#source#" . g:dein#name ." call zvim#util#source_rc('plugins/" . split(g:dein#name,'\.')[0] . ".vim')"
Shougo
@Shougo
Mar 23 2016 23:24
Please see the documentation.
    Note: non lazy plugins' |dein-hooks-source| cannot be called.
    You must call it manually if needed.
Wang Shidong
@wsdjeg
Mar 23 2016 23:25
so it not works same as before?
Shougo
@Shougo
Mar 23 2016 23:25
Yes
Wang Shidong
@wsdjeg
Mar 23 2016 23:25
I remanber about 2 weeks ago it can work
ok
thanks
Shougo
@Shougo
Mar 23 2016 23:25
For optimization
Wang Shidong
@wsdjeg
Mar 23 2016 23:25
thanks
so I know how to fix my configration
Shougo
@Shougo
Mar 23 2016 23:27
call dein#call_hook('source')
It calls your source hooks.