Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Thanatermesis opened this issue Apr 21, 2023 · 1 comment
Open

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

Thanatermesis opened this issue Apr 21, 2023 · 1 comment

Comments

@Thanatermesis
Copy link

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
Copy link
Owner

rcarriga commented May 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants