nvim-notify.lua 517 B

123456789101112131415161718192021222324
  1. return {
  2. "rcarriga/nvim-notify",
  3. keys = {
  4. {
  5. "<leader>un",
  6. function()
  7. require("notify").dismiss({ silent = true, pending = true })
  8. end,
  9. desc = "Dismiss all Notifications",
  10. },
  11. },
  12. opts = {
  13. timeout = 3000,
  14. max_height = function()
  15. return math.floor(vim.o.lines * 0.75)
  16. end,
  17. max_width = function()
  18. return math.floor(vim.o.columns * 0.75)
  19. end,
  20. on_open = function(win)
  21. vim.api.nvim_win_set_config(win, { zindex = 100 })
  22. end,
  23. }
  24. }