nvim-notify icon indicating copy to clipboard operation
nvim-notify copied to clipboard

Semi-Permanent Notifications

Open Zusemat opened this issue 3 months ago • 1 comments

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

Zusemat avatar Sep 03 '25 16:09 Zusemat

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:

Image

serpro69 avatar Oct 15 '25 20:10 serpro69