fidget.nvim icon indicating copy to clipboard operation
fidget.nvim copied to clipboard

Use vim-notify as a backend

Open j-hui opened this issue 3 years ago • 3 comments

The vim-notify wiki has a recipe for displaying LSP progress updates using their notifications. It looks really sweet!

I haven't had a chance to try out vim-notify yet, but it would be really cool to opt into using that to display progress messages.

j-hui avatar Mar 20 '22 02:03 j-hui

I have an opposite suggestion. How about adding functionality of displaying vim.notify messages through fidget.nvim? I would really appreciate unified interface and am loving simplicity and unintrusiveness of your plugin.

gegoune avatar Apr 04 '22 21:04 gegoune

@gegoune perhaps I can spin off the notification component of fidget as a dedicated notification backend?

(Or it might be even easier to make a PR into vim-notify to use a fidget-like style)

j-hui avatar Apr 04 '22 23:04 j-hui

How difficult would it be to implement support here? This approach would require one fewer plugin to be installed. :)

gegoune avatar Apr 05 '22 04:04 gegoune

Plus one, it would be great to have fidget as a vim.notify backend

pwntester avatar Oct 13 '22 08:10 pwntester

The unobtrusive interface is really neat. Plus one to refactoring out the UI component into its own reusable plugin.

gregorias avatar Mar 25 '23 19:03 gregorias

I’m sorry to have put this off for so long! I promise I’ll get to it

j-hui avatar Mar 25 '23 19:03 j-hui

This should now be possible as of #143. I'm not sure I want to support this kind of thing first-class (despite using nvim-notify myself), but it can now certainly be done with a little hacking (without modifying the plugin) and redirecting the ProgressMessage packets toward nvim-notify rather than Fidget's own notification backend.

j-hui avatar Nov 10 '23 01:11 j-hui

I was originally envisioning using nvim-notify for actually displaying the notifications, but I realize now that what I had in mind doesn't make that much sense considering that Fidget's progress subsystem contains a number of Fidget-specific configuration options.

In any case, Fidget is now its own vim.notify backend, and 91eb16f provides a way to use nvim-notify for notifications that that need features Fidget does not support. With that, I'll close this issue. If anyone would like to suggest any specific nvim-notify integrations, please file a new Issue.

j-hui avatar Dec 26 '23 20:12 j-hui