minpac
minpac copied to clipboard
Install only new plugins
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?
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')})))