folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.92k stars 361 forks source link

feature: See outdated versions with `version` #1729

Open nihaals opened 2 months ago

nihaals commented 2 months ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

If you use e.g. version = "^0.1", there isn't an easy way to tell when there's a new version that isn't part of the range (e.g. v0.2 or v1). With check_pinned you can see that there are commits after the version you're on, but because of this being so noisy (just because there are commits you're not on doesn't mean there's a version to update to and you're almost always going to be behind since you're using a tag), you end up ignoring the "outdated" list and just update whenever you see an update that fits into your range (e.g. v0.1.1 or a commit for a plugin you don't use version for).

Describe the solution you'd like

It would be great if there was a way to differentiate between a new commit being available for a plugin that uses version that you aren't going to update to and when a new version has been released that doesn't fit into your range. It also seems almost unintentional that check_pinned shows new commits since you intentionally used a version range and I would expect the option to instead show the plugin as outdated only when a version has been released that isn't part of your set range.

For example, if you use a plugin and set version = "^0.1" and it releases v0.1.1, you can update to it and this flow works great already.

If you've updated to v0.1.1 and a new commit is pushed that isn't part of a tag yet, it shows as outdated. If this was the intention behind check_pinned then this can just be ignored, especially if this FR would add another option and you could just not set check_pinned anymore to reduce noise.

If the plugin releases v0.2.0, you don't have a great way of knowing. It would be great if there was an option similar to check_pinned that showed a section for plugins that are updated to the latest version in its range, but there are now versions outside of its range that you aren't updating to, so you know to bump version, check for breaking changes, update your config if needed and update.

Describe alternatives you've considered

Additional context

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

nihaals commented 1 month ago

No stale

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

nihaals commented 2 weeks ago

No stale