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

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

Open
chrisgrieser opened this issue Jun 12, 2024 · 0 comments
Open

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

chrisgrieser opened this issue Jun 12, 2024 · 0 comments

Comments

@chrisgrieser
Copy link
Contributor

chrisgrieser commented Jun 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant