notify.lua 752 B

12345678910111213141516171819202122232425262728293031
  1. local M = {}
  2. function M.config()
  3. local pallete = require "onedarker.palette"
  4. lvim.builtin.notify = {
  5. active = false,
  6. on_config_done = nil,
  7. -- TODO: update after https://github.com/rcarriga/nvim-notify/pull/24
  8. opts = {
  9. ---@usage Animation style (see below for details)
  10. stages = "fade_in_slide_out",
  11. ---@usage Default timeout for notifications
  12. timeout = 5000,
  13. ---@usage For stages that change opacity this is treated as the highlight behind the window
  14. background_colour = pallete.fg,
  15. ---@usage Icons for the different levels
  16. icons = {
  17. ERROR = "",
  18. WARN = "",
  19. INFO = "",
  20. DEBUG = "",
  21. TRACE = "✎",
  22. },
  23. },
  24. }
  25. end
  26. return M