minpac icon indicating copy to clipboard operation
minpac copied to clipboard

Install only new plugins

Open markonm opened this issue 8 years ago • 1 comments

Is there a way to install new plugins without updating the rest of them? I now I can call minpac#update and provide names for the plugins I want to install, but I would like to make command to automatize the process. Is there a way to retrieve list of plugins which are registered but not installed?

markonm avatar Aug 23 '17 17:08 markonm

Sorry for the very rate response.

Is there a way to retrieve list of plugins which are registered but not installed?

You can use the following command:

echo keys(filter(copy(minpac#pluglist), {-> !isdirectory(v:val.dir . '/.git')}))

So, you can only install new plugins by:

call minpac#update(keys(filter(copy(minpac#pluglist), {-> !isdirectory(v:val.dir . '/.git')})))

You can also define a command like this:

command! PackInstall call minpac#update(keys(filter(copy(minpac#pluglist), {-> !isdirectory(v:val.dir . '/.git')})))

k-takata avatar Aug 27 '18 08:08 k-takata