diff options
author | kylo252 <[email protected]> | 2021-10-22 23:46:43 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-22 23:46:43 +0200 |
commit | a96a44a16a46dae0aee0f5689ccfe644d2a27c0f (patch) | |
tree | c7c9ee30b2d86437df4f723af7c9b557c66fe9d6 /lua/lvim/core/notify.lua | |
parent | 10df0b5ffd0fd96b210747e9169dad08c81dca1b (diff) |
[fix] fix notify's highlight groups and make it optional (#1827)
Diffstat (limited to 'lua/lvim/core/notify.lua')
-rw-r--r-- | lua/lvim/core/notify.lua | 31 |
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 |