Commit Graph

18 Commits

Author SHA1 Message Date
Andre Toerien 72c0dc9462
fix(git): local plugin fixes (#1624)
## Description

As I described in
https://github.com/folke/lazy.nvim/pull/1512#issuecomment-2212474372,
this makes it so that local plugins will only show as needing updates if
the local branch is behind the upstream branch. This is done by checking
the output of the `git log` command, and only setting `plugin._.updates`
if the output is not empty.

This seems to solve my issue where local plugins with unpushed changes
always show as needing updates, but if there's a easier/better way of
doing it then please feel free to edit/close this. Or if you don't agree
that the current behaviour is a bug, then that's also fine - it's not a
big deal and I can easily just ignore the "updates available" notice.

I also came across a minor issue where the plugin diff view (press `d`)
compares the wrong commits for local plugins, because
[lua/lazy/view/init.lua](c771cf4928/lua/lazy/view/init.lua (L268))
always uses `get_target`. I fixed this by moving `get_local_target` into
`get_target` - I think this is simpler and more straightforward than the
alternative of adding a ternary everywhere `get_target` is called.

This second bugfix is a very small change, so I've just included it
here, but I'm happy to make a second PR if you'd like.

## Related Issue(s)

Related PR: #1512
2024-07-07 17:13:49 +02:00
Kevin Traver 2e04a0c02c
fix(checker): ignore dev plugins (#1384) 2024-05-18 10:14:12 +02:00
Folke Lemaitre 22bf6ae04b
style: sort requires 2023-10-09 11:25:42 +02:00
Folke Lemaitre c32a6185ac
fix(checker): dont check for updates when there's tasks with errors 2023-01-23 19:19:00 +01:00
Folke Lemaitre ed210702f5
fix(checker): dont clear tasks when running update check 2023-01-23 19:18:59 +01:00
Folke Lemaitre 4008b57d88
fix(checker): make sure we show logs when only doing a fast check 2023-01-22 14:30:12 +01:00
Folke Lemaitre 813fc944d7
feat(checker): checker will now save last check time and only check at configured frequency even after restarting Neovim 2023-01-18 08:39:02 +01:00
Folke Lemaitre 5ed89b5a0d
fix(config): properly handle uis connecting after startup 2023-01-07 09:12:59 +01:00
Folke Lemaitre c85f929bd9
fix(install): dont try re-installing failed missing plugins during startup. Fixes #303 2023-01-03 22:50:14 +01:00
Folke Lemaitre dc9c92a9b3
fix(git): properly compare git commits with short refs 2023-01-03 09:36:43 +01:00
Folke Lemaitre 34e2c78e06
feat(ui): show new version that is available instead of general message 2022-12-31 16:08:09 +01:00
Folke Lemaitre 86f2c67aa8
fix(checker): update updated after every manage operation. Fixes #141 2022-12-24 11:30:15 +01:00
Folke Lemaitre 8251c23c90
fix(checker): dont report updates on install during startup 2022-12-23 07:48:45 +01:00
Tsakiris Tryfon a939243639
fix(checker): allow git checks only for non-pinned plugins (#61) 2022-12-21 14:39:08 +01:00
Folke Lemaitre ddf36d7748
fix: checker should not error on non-existing dirs 2022-12-20 13:44:21 +01:00
Folke Lemaitre ae644a604d
fix: only run updated checker for installed plugins. Fixes #16 2022-12-20 11:58:54 +01:00
Folke Lemaitre 2a7466abad
feat(checker): only report an update once and do a fast update check after each manage operation 2022-12-13 10:10:17 +01:00
Folke Lemaitre 65cd28e613
feat(ui): added update checker 2022-12-05 20:49:23 +01:00