summaryrefslogtreecommitdiff
path: root/lua/lvim/core/notify.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/core/notify.lua')
-rw-r--r--lua/lvim/core/notify.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/lvim/core/notify.lua b/lua/lvim/core/notify.lua
new file mode 100644
index 00000000..7d222a89
--- /dev/null
+++ b/lua/lvim/core/notify.lua
@@ -0,0 +1,31 @@
+local M = {}
+
+function M.config()
+ local pallete = require "onedarker.palette"
+ lvim.builtin.notify = {
+ active = false,
+ on_config_done = nil,
+ -- TODO: update after https://github.com/rcarriga/nvim-notify/pull/24
+ opts = {
+ ---@usage Animation style (see below for details)
+ stages = "fade_in_slide_out",
+
+ ---@usage Default timeout for notifications
+ timeout = 5000,
+
+ ---@usage For stages that change opacity this is treated as the highlight behind the window
+ background_colour = pallete.fg,
+
+ ---@usage Icons for the different levels
+ icons = {
+ ERROR = "",
+ WARN = "",
+ INFO = "",
+ DEBUG = "",
+ TRACE = "✎",
+ },
+ },
+ }
+end
+
+return M