Closed Corgile closed 1 year ago
Duplicate of https://github.com/rcarriga/nvim-notify/issues/190, see that issue for solutions
If long message is problem - you can show only filename in notification body. I use this keybind with which-key.
['<c-s>'] = {
function()
vim.cmd('silent! wa')
vim.notify(
'File "' .. vim.fn.expand('%:t') .. '" was saved',
2,
{ title = 'Saved', icon = '✓' }
)
end,
'Save file ',
},
Overriding/customizing notification is indeed needed in since sometimes the messages can be so long that cover contents for a long time.
my onsave action is implemented by :