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

feat(statusline): add trouble diagnostic counts to statusline #525

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spenrose
Copy link

@spenrose spenrose commented Jun 29, 2024

Allows you to use trouble diagnostic counts on your status line. This is best used when you are running a filter on trouble diagnostics. For example, I only want to see workspace diagnostics and counts.

This is my first time writing lua code and contributing to a neovim plugin. Please be kind but brutal with feedback so that I can improve my solution and learn.

I duplicated a bunch of code in api.lua from function M.statusline(opts). There is probably a way to share most of that code between it and function M.diagnosticsCount(opts).

I would also eventually like to support trouble as a diagnostic source in lualine. I am not sure how to accomplish this. It is also a little more complicated than the others as you would want to specify the mode and/or filter. If anyone has any ideas on this that would be great.

Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 30, 2024
@spenrose spenrose force-pushed the filtered-diagnostic-count-to-lualine branch from 5a18ee9 to 657df23 Compare August 31, 2024 19:15
Allows you to use trouble diagnostic counts on your status line. This is
best used when you are running a filter on trouble diagnostics. For
example, I only want to see workspace diagnostics and counts.
@spenrose spenrose force-pushed the filtered-diagnostic-count-to-lualine branch from 657df23 to 5ff4cce Compare August 31, 2024 19:20
@github-actions github-actions bot removed the stale label Sep 1, 2024
@spenrose spenrose changed the title feat: add trouble diagnostic counts to statusline feat(statusline): add trouble diagnostic counts to statusline Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant