Closed ahmedelgabri closed 5 years ago
I had to do this to make it work, but not sure if this is the right thing
function! s:coc_plugins() abort
+ execute 'packadd ' . a:name
call coc#util#install()
call coc#util#install_extension(join(get(s:, 'coc_extensions', [])))
endfunction
The post-update hook is called after updating by the git command is finished.
At the moment, the plugin might not be added to the 'runtimepath'. (Vim will update it after .vimrc
is loaded or packadd
is used.)
Adding execute 'packadd ' . a:name
looks right solution.
@k-takata perfect, thanks!
Sorry to revive this issue back, but execute 'packadd ' . a:name
is also not working properly. That's because hooks only run as a post-update
& they don't run after the initial install.
Is there is any way to be able to run this on initial install & on updates too?
I'm trying to add a custom post update hook, when I do this it blows up
~while this works as expected~ actually this also stopped working...
Any idea where is the problem & how to make it work?