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

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

Open
oredaze opened this issue Feb 3, 2024 · 3 comments
Open

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

oredaze opened this issue Feb 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@oredaze
Copy link

oredaze commented Feb 3, 2024

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 j-hui added the enhancement New feature or request label Feb 4, 2024
@j-hui
Copy link
Owner

j-hui commented Feb 4, 2024

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.

@j-hui j-hui changed the title Override cmdline messages? feat: integrate with Noice + use as cmdline UI? Feb 4, 2024
@oredaze
Copy link
Author

oredaze commented Feb 4, 2024

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

@willothy
Copy link
Contributor

willothy commented Feb 7, 2024

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.

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

No branches or pull requests

3 participants