rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
3.03k stars 81 forks source link

FR: Allow renderers to window properties like `title` and `footer` #279

Open chrisgrieser opened 3 months ago

chrisgrieser commented 3 months ago

As opposed to #200, this FR is about being able to set it as a render render function.

So basically, I settle on a wrapped version of minimal, and used the pointers from #200 to set the title into the window border: Pasted image 2024-06-12 at 13 06 02@2x

However, such a solution requires the user to add some custom config to on_open, on top of selecting a specific renderer to got with it, which I think is far from ideal. It would of course be better if the user would only have to select a renderer. On top of that, setting the title via on_open has some drawbacks, for instance if the title is longer than the message, then the title gets cut off, etc.

Especially with nvim 0.10's support for footer, this is relevant, since I think the footer feels like the perfect place for stuff like the notification time.