I know there is a packer_plugins table, but it would be cool if there was a packer.is_synced() function that checks whether all declared plugins using pakcer.use (including rocks using packer.use_rocks) are installed on disk. It would be nice if this function returned a table of all the plugins that are not synced. This way it would be possible to add a new plugin while inside Neovim and have a autocmd that reloads your config and conditionally syncs plugins that are not installed on disk.
It doesn't need to check whether already installed plugins need syncing (like if the remote git branch is not in sync with the branch on disk) but it would be cool if it did that as well. ~If it did that, it would be possible faster to run packer.sync asynchronously on every startup for plugins that need syncing and notify the user if there are some breaking changes.~ Nevermind, this is something that packer.sync already does.
Describe the feature
I know there is a
packer_plugins
table, but it would be cool if there was apacker.is_synced()
function that checks whether all declared plugins usingpakcer.use
(includingrocks
usingpacker.use_rocks
) are installed on disk. It would be nice if this function returned a table of all the plugins that are not synced. This way it would be possible to add a new plugin while inside Neovim and have aautocmd
that reloads your config and conditionally syncs plugins that are not installed on disk.It doesn't need to check whether already installed plugins need syncing (like if the remote git branch is not in sync with the branch on disk) but it would be cool if it did that as well. ~If it did that, it would be possible faster to run
packer.sync
asynchronously on every startup for plugins that need syncing and notify the user if there are some breaking changes.~ Nevermind, this is something thatpacker.sync
already does.