lewis6991 / pckr.nvim

Spiritual successor of https://github.com/wbthomason/packer.nvim
MIT License
243 stars 13 forks source link

A way to call :Pckr install synchronously #12

Closed D4yvid closed 8 months ago

D4yvid commented 8 months ago

Describe the feature

I tried a lot of ways of creating a 'sync' install, like lazy one, for example:

require 'pckr'.sync_install() -- Will block until all plugins were installed

require 'some.installed.plugin'.setup {}
lewis6991 commented 8 months ago

Why do you need to install plugins synchronously?

D4yvid commented 8 months ago

I'm on a context where all functions need to be called in order, and it would be a nice thing to specify a plugins block and after it just configure the plugin. For example:

plugins {
  'foo/bar'
}

require 'bar'.setup {} -- Wouldn't error because that the plugin is already installed
lewis6991 commented 8 months ago

You need to use config and dependencies.