Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install only new plugins #38

Open
markonm opened this issue Aug 23, 2017 · 1 comment
Open

Install only new plugins #38

markonm opened this issue Aug 23, 2017 · 1 comment
Labels

Comments

@markonm
Copy link

markonm commented Aug 23, 2017

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?

@k-takata
Copy link
Owner

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')})))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants