rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
3k stars 80 forks source link

added simple render style #131

Closed gennaro-tedesco closed 1 year ago

gennaro-tedesco commented 1 year ago

I would like to propose a simple render style in between "default" and "minimal", namely only showing (centred) title (with no icons and timestamps) and notification message: see rendering examples in the screenshots below

Screenshot 2022-09-21 at 11 45 43 Screenshot 2022-09-21 at 11 52 05

I have tweaked the original default.lua to centre the title and remove the spurious spaces, it should work fine with all use cases (but perhaps there are cases I have not considered - I am just slowly familiarising with the code): what do you think?

rcarriga commented 1 year ago

Thanks for the PR!

gennaro-tedesco commented 1 year ago

P. S. I forgot to add the style in help text of :h notify-render(), maybe for completeness you may want to add a small commit adding the text there too :)

rcarriga commented 1 year ago

Ah thanks, done :+1: