Skip to content
Discussion options

You must be logged in to vote

Now built into snacks.nvim! See #2331.

Previous message

I think it can be done better. I’m not sure how to hook up before the layout changes.

notifier = {
  ---@param buf integer
  ---@param notif snacks.notifier.Notif
  ---@param ctx snacks.notifier.ctx
  style = function(buf, notif, ctx)
    local render = ctx.notifier:get_render 'compact'
    render(buf, notif, ctx)
    vim.schedule(function()
      notif.layout.top = notif.layout.top + 1
      ctx.notifier:process()
    end)
  end,
},

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kaihocd
Comment options

@kaihocd
Comment options

Answer selected by kaihocd
Comment options

You must be logged in to vote
0 replies
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