nvim-notify
nvim-notify copied to clipboard
Semi-Permanent Notifications
Is there a way to have a semi-permanent notification? What I'm thinking about is for example when you start recording a macro. Could there be a Notification that stays active for as long as I'm recording the macro? Thanks in advance
Did the same for exactly this reason - to better visualize in-progress macro recording. This is how I do it:
- I have two custom functions that handle the notification itself: https://github.com/serpro69/nvim-config/blob/6a6b72cd30f36111dd4dfd98ad1d4a06e2531cdb/lua/serpro69/notify.lua#L122-L157
- And two autocmd for record enter and leave: https://github.com/serpro69/nvim-config/blob/6a6b72cd30f36111dd4dfd98ad1d4a06e2531cdb/lua/core/serpro69/autocommands.lua#L60-L79
Dunno if there's a better way to do this, but it works just fine as it is: