kristijanhusak / vim-packager

Vim plugin manager that utilizes "jobs" and "pack" features.
MIT License
245 stars 9 forks source link

[Suggestion] Move the directory if the only change was plugin type (start or opt) #34

Open bruhtus opened 3 years ago

bruhtus commented 3 years ago

First of all, thank you for making this great plugin manager. I've been using minpac for a while. I like how minpac works, but I don't really like the interface. That's why I decided to try vim-packager.

While using it, I've noticed that when i changed the plugin type (changed from opt to start) and do an update, vim-packager re-cloning the plugin repo rather than moving the plugin directory from opt directory to start directory. So there are two directories which is basically the same.

For now, what I use is call packager#clean() | call packager#update(<args>) so that there's no double directories of the same plugin. Is there a way to move the plugin directory if the only thing that changed is the plugin type? Like, checking if the plugin directory already in start or opt first before doing the update.

Thank you.