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

remove completely or suppress (via a setting) the "no results" notification #154

Closed
errantepiphany opened this issue Jan 20, 2022 · 2 comments · Fixed by #164 or #244
Closed

remove completely or suppress (via a setting) the "no results" notification #154

errantepiphany opened this issue Jan 20, 2022 · 2 comments · Fixed by #164 or #244

Comments

@errantepiphany
Copy link

When there are no results to display, trouble tells nvim to output a warning notification that there are "no results":
https://github.com/folke/trouble.nvim/blob/main/lua/trouble/renderer.lua#L49-L51

This doesn't seem at all necessary to me, since if there are no results, it is obvious since the window is empty. It is especially annoying to get that notification if one is using the https://github.com/rcarriga/nvim-notify plugin, since it will always pop up a "no results" warning window every time you go to a buffer that has no diagnostic problems (as long as the trouble window is visible).

If there is a good reason to keep the "no results" notification, can we please have a trouble setting where we can disable / suppress the notification if we so desire? Thank you!

bellini666 added a commit to bellini666/trouble.nvim that referenced this issue Feb 12, 2022
sileht pushed a commit to sileht/trouble.nvim that referenced this issue Mar 12, 2022
@qianlifeng
Copy link

Yes, it seems annoying for me too. Pls provide an option to disable this at least.

@errantepiphany
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants