Skip to content

Getting "No matching notification found to replace" on neovim startup #13

@tristan957

Description

@tristan957

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.

---@type LazySpec[]
return {
  {
    "rcarriga/nvim-notify",
    event = "UIEnter",
    config = function()
      local notify = require("notify")

      notify.setup({
        stages = "fade",
      })

      vim.notify = notify
    end,
  },
  {
    "mrded/nvim-lsp-notify",
    dependencies = {
      "rcarriga/nvim-notify",
    },
    event = "UIEnter",
    config = function()
      local lsp_notify = require("lsp-notify")

      -- Because we depend on nvim-notify, vim.notify is a fine default to use.
      -- nvim-notify will handle everything.
      lsp_notify.setup({
        done = ""
      })
    end
  },
}

Apparently, if I comment out event = "UIEnter" it works. Is there a different event that would be better to load this extension on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions