Skip to content

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 This issue or PR has been inactive for a while label Jul 30, 2024
@spenrose spenrose force-pushed the filtered-diagnostic-count-to-lualine branch 2 times, most recently from 657df23 to 5ff4cce Compare August 31, 2024 19:20
@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while 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
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 This issue or PR has been inactive for a while label Oct 25, 2024
@spenrose spenrose force-pushed the filtered-diagnostic-count-to-lualine branch from 5ff4cce to 1875461 Compare October 25, 2024 21:24
@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Oct 26, 2024
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 This issue or PR has been inactive for a while label Nov 25, 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.
@spenrose spenrose force-pushed the filtered-diagnostic-count-to-lualine branch from 1875461 to e6d7021 Compare February 25, 2025 02:30
@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Feb 26, 2025
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 This issue or PR has been inactive for a while label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue or PR has been inactive for a while

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant