Closed DariusCorvus closed 1 year ago
Appreciate the PR but I've already rejected adding this type of feature in https://github.com/rcarriga/nvim-notify/issues/129. I don't want nvim-notify to change the message in any way as I'd like to keep it simple in the core and allow extending it instead.
There is no perfect solution for this:
wrap
on the window and update the render function to accommodate for this but it'll be complex and stages with changing window sizes will look odd as they update.So I'm happy for an entry to be added to the wiki to show users how they could do this but (at least for the foreseeable future) I won't be adding this to the plugin. If you do wish to add to the wiki, be aware that your implementation doesn't handle newlines in the message or messages already passed in as a list.
Hello
I missed a parameter to wrap messages at the
max_width
for messages.The reason for such a parameter would be to wrap messages that a from
vim.notify
when it is overwritten with
require ("notify")
.Long story short i implemented the parameter
wrap_message
.When the parameter
wrap_message
is set to true and passed into the notify setup, messages are split at a string length ofmax_width
.