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

feature: configure lsp hover handler to use silent = true #412

Closed
1 task done
igorlfs opened this issue Mar 25, 2023 · 3 comments · Fixed by #431 or #639
Closed
1 task done

feature: configure lsp hover handler to use silent = true #412

igorlfs opened this issue Mar 25, 2023 · 3 comments · Fixed by #431 or #639
Labels
enhancement New feature or request

Comments

@igorlfs
Copy link

igorlfs commented Mar 25, 2023

Did you check the docs?

  • I have read all the noice.nvim docs

Is your feature request related to a problem? Please describe.

Having the ability to not display anything on hover would be nice, specially when using multiple LSP servers attached to the same buffer, where some may not provide hover capabilities. Overall, it feels cleaner than "No information available".

Describe the solution you'd like

Having an option (a preset?) to control whether to use silent = true. I don't think this should be the default, as some users may get confused thinking the hover isn't working.

Describe alternatives you've considered

Since manually setting the handlers with noice is a no-go, I haven't looked into any alternatives.

Additional context

No response

@igorlfs igorlfs added the enhancement New feature or request label Mar 25, 2023
@jisensee
Copy link

I was too looking for a way to get rid of that annoying notification and found that as a workaround you can add a custom route to stop that message being processed. Just needed to add this to the routes list in the plugin opts:

{
  filter = { find = 'No information available' },
  opts = { stop = true },
},

Not the best solution but does the job for now.

@igorlfs
Copy link
Author

igorlfs commented Apr 12, 2023

Hey @jisensee, thanks for the workaround!

igorlfs added a commit to igorlfs/dotfiles that referenced this issue Apr 12, 2023
@folke folke closed this as completed in e2a53cf Apr 16, 2023
@igorlfs
Copy link
Author

igorlfs commented Apr 16, 2023

Thanks folke!

willothy pushed a commit to willothy/noice.nvim that referenced this issue Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants