k-takata / minpac

A minimal package manager for Vim 8+ (and Neovim)
841 stars 30 forks source link

PackStatus is not useful without calling PackInit #128

Closed lepistone closed 3 years ago

lepistone commented 3 years ago

Following the instructions for loading minpac on demand, calling PackStatus as suggested results in the error message "Minpac has not been initialized. Use the default values.".

It seems that for PackStatus to be useful, in the same way as PackUpdate and PackClean, PackInit should be called first.

k-takata commented 3 years ago

If minpac#init() is called from PackInit(), the result of previous PackUpdate will be lost. So, PackStatus won't show useful status.

lepistone commented 3 years ago

Ah, I think I understand now. Calling minpac#status does need minpac#init to have run to produce any output, but running minpac#init again would lose the previous update.

OK, thanks!