-
Notifications
You must be signed in to change notification settings - Fork 5
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
Getting "No matching notification found to replace" on neovim startup #13
Comments
I have the same problem if I call Here are my configs. Note that calling nvim-notify ---@diagnostic disable: assign-type-mismatch
return {
"rcarriga/nvim-notify",
config = function()
local notify = require("notify")
-- Overriding vim's notification system
vim.notify = notify
vim.keymap.set("n", "<leader><leader>", function()
notify.dismiss({ silent = true, pending = true })
vim.cmd("noh")
end, { desc = "Clear notifications and search highlights" })
-- Just the default config except for the 3 first properties
-- This is needed because, otherwise, the diagnostic float
-- would not open except on line 1
notify.setup({
background_colour = "#000000",
render = "wrapped-compact",
stages = "fade",
level = vim.log.levels.INFO,
timeout = 5000,
max_width = nil,
max_height = nil,
on_open = nil,
on_close = nil,
minimum_width = 50,
fps = 30,
top_down = true,
time_formats = {
notification_history = "%FT%T",
notification = "%T",
},
icons = {
ERROR = "",
WARN = "",
INFO = "",
DEBUG = "",
TRACE = "✎",
},
})
end,
} nvim-lsp-notify -- nicer lsp notifications using nvim-notify
return {
"mrded/nvim-lsp-notify",
dependencies = { "rcarriga/nvim-notify" },
opts = {},
} |
This issue completely breaks the plugin for me. I have |
Hey, maybe you can try my fork of the repo, it should be fixed. |
See the code where this message is generated: https://github.com/rcarriga/nvim-notify/blob/80b67b265530632505193553d05127ae7fe09ddd/lua/notify/service/init.lua#L69.
I think this is related to testing the replace functionality, but I am not sure. It only happens when this extension is enabled.
Apparently, if I comment out
event = "UIEnter"
it works. Is there a different event that would be better to load this extension on?The text was updated successfully, but these errors were encountered: