Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: statusline integration -- status shows updates are still available after updating all plugins #141

Closed
3 tasks done
freddiehaddad opened this issue Dec 23, 2022 · 3 comments · Fixed by #129
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@freddiehaddad
Copy link

freddiehaddad commented Dec 23, 2022

Did you check docs and existing issues?

  • I have read all the lazy docs
  • I have searched the existing issues of lazy
  • I have searched the exsiting issues of the plugin I have a problem with

Neovim version (nvim -v)

NVIM v0.8.1

Operating system/version

Linux arch 6.1.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Dec 2022 22:27:55 +0000 x86_64 GNU/Linux

Describe the bug

My status line will show a notification when there are plugins available for update. However, after updating all the plugins, the status bar doesn't get an update and continues to showing there are updates available.

I'm using Feline instead of lualine, but referencing the same help in the README.

options.lazy = {
	provider = require('lazy.status').updates,
	enabled = require('lazy.status').has_updates,
	hl = 'FelineStatus',
	left_sep = {
		str = ' ',
		hl = 'FelineStatus',
	},
	right_sep = {
		str = ' ',
		hl = 'FelineStatus',
	},
}

Steps To Reproduce

  1. Wait for lazy to detect that there are plugin updates available
  2. Observe the status bar shows there are updates
  3. Update the plugins (i.e. :Lazy update)
  4. Observe the status bar shows there are updates

Expected Behavior

After updating all the plugins, expect to see no more updates available on the statusline

@freddiehaddad freddiehaddad added the bug Something isn't working label Dec 23, 2022
@freddiehaddad
Copy link
Author

Thinking through this more, perhaps, I need to associate a trigger or something with this so the statusline knows when to update the display?

@freddiehaddad
Copy link
Author

freddiehaddad commented Dec 24, 2022

Continuing to investigate. Even after updating all plugins, the following still returns true:

:lua print(require('lazy.status').has_updates())

@folke
Copy link
Owner

folke commented Dec 24, 2022

I know what this is. Will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants