We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23cf91c commit 1503184Copy full SHA for 1503184
lua/one_monokai/logs.lua
@@ -2,12 +2,12 @@
2
local logs = {}
3
4
---Display a notification to the user
5
----@param log_level string
+---@param level vim.log.levels
6
---@param s string
7
-local function notify(log_level, s, ...)
+local function notify(level, s, ...)
8
local message = string.format(s, ...)
9
10
- vim.notify_once(message, log_level, {
+ vim.notify_once(message, level, {
11
title = "One Monokai",
12
})
13
end
@@ -20,7 +20,7 @@ logs.notify = {
20
notify(vim.log.levels.ERROR, s, ...)
21
end,
22
warning = function(s, ...)
23
- notify(vim.log.levels.WARNING, s, ...)
+ notify(vim.log.levels.WARN, s, ...)
24
25
}
26
0 commit comments