Use global to discover whether minpac is installed, rather than checking for minpac#init

This commit is contained in:
Danielle McLean 2020-10-01 14:00:14 +10:00
parent c3f33c1aab
commit f80f31025e
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -1,6 +1,6 @@
if exists('+packpath')
silent! packadd minpac
if !exists('*minpac#init')
if !exists('g:loaded_minpac')
silent !git clone https://github.com/k-takata/minpac.git $XDG_CACHE_HOME/vim/pack/minpac/opt/minpac
augroup minpac
autocmd!