rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.91k stars 74 forks source link

Unable to set the 'stages' decoration on user callback #193

Open Thanatermesis opened 1 year ago

Thanatermesis commented 1 year ago

I'm trying to add a notification for the hotkey "Ctrl + C" in visual mode,

    ["<C-c>"] = { '"+y<CR><cmd>:lua vim.notify("Text copied to your clipboard", "info", { title = "Copied", stages = "slide" })<CR>', opts = { noremap = true } },

But the "stages" value seems to be ignored

rcarriga commented 1 year ago

The stages can't be set by a single notification. They are defined per notify instance only. If you wanted to do this you could have a separate instance per desired stages type and delegate to the corresponding one within your vim.notify override