Skip to content
Discussion options

You must be logged in to vote

Here is a hacky way to solve the problem:

vim.pack.add({
  { src = "https://github.com/MunifTanjim/nui.nvim" },
  { src = "https://github.com/folke/noice.nvim" },
  { src = "https://github.com/folke/snacks.nvim" },
})

require("noice").setup({})

local ctx_mock = {
  notifier = {
    get_render = function()
      return function(buf, notif, _ctx)
        vim.api.nvim_buf_set_lines(buf, 0, -1, true, vim.split(notif.msg, "\n"))
      end
    end,
  },
}

require("snacks").setup({
  notifier = {
    enabled = true,
  },
  picker = {
    sources = {
      notifications = {
        preview = function(ctx)
          ---@type snacks.notifier.Notif
          local notif = ctx.picker:current().item

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@dagl1
Comment options

@drowning-cat
Comment options

@dagl1
Comment options

Comment options

You must be logged in to vote
3 replies
@dagl1
Comment options

@drowning-cat
Comment options

@dagl1
Comment options

Answer selected by dagl1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants