j-hui / fidget.nvim

💫 Extensible UI for Neovim notifications and LSP progress messages.
MIT License
1.93k stars 56 forks source link

feat: integrate with Noice + use as cmdline UI? #210

Open oredaze opened 7 months ago

oredaze commented 7 months ago

I was wondering if there is a way to completely replace/override all of neovim's messages, or is that a separate functionality that needs to be developed? And I mean not just the notifications, but things that are in the cmdline like prints, when you save a file, etc. Every message. The idea is to have cmdheight = 0

Noice does this with it's notifications, but I think fidged looks better than the 2 notification backends provided by noice. Maybe fidget can colab and also be included as a backend?

j-hui commented 7 months ago

That definitely needs to be separately worked on. So far, Fidget assumes that all messages are given to it via the vim.notify(), and those messages do not need to be interacted with. I'm not entirely certain what Noice is doing or what it requires, but the cmdline stuff requires user input, which is beyond what Fidget can do.

I've actually been eyeing integrating with Noice for a little while, but to be entirely honest, the problem is that I don't use Noice myself (yet) and don't really understand how it works (yet). As a first step, I want to see what it takes to make Fidget a notification backend for Noice, but I will probably only get to that after some tweaks to Fidget's own internals.

oredaze commented 7 months ago

For interactivity noice uses nui, but dressing would also work (probably easier to do and better).

willothy commented 7 months ago

I want to see what it takes to make Fidget a notification backend for Noice, but I will probably only get to that after some tweaks to Fidget's own internals.

I have a somewhat hacky but functional fidget backend here in my config if you're interested :) It's definitely not worthy of merging here imo but could be helpful when looking at how Noice does things.