Skip to content

Commit 1503184

Browse files
committed
fix: correct warning log level
1 parent 23cf91c commit 1503184

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/one_monokai/logs.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
local logs = {}
33

44
---Display a notification to the user
5-
---@param log_level string
5+
---@param level vim.log.levels
66
---@param s string
7-
local function notify(log_level, s, ...)
7+
local function notify(level, s, ...)
88
local message = string.format(s, ...)
99

10-
vim.notify_once(message, log_level, {
10+
vim.notify_once(message, level, {
1111
title = "One Monokai",
1212
})
1313
end
@@ -20,7 +20,7 @@ logs.notify = {
2020
notify(vim.log.levels.ERROR, s, ...)
2121
end,
2222
warning = function(s, ...)
23-
notify(vim.log.levels.WARNING, s, ...)
23+
notify(vim.log.levels.WARN, s, ...)
2424
end,
2525
}
2626

0 commit comments

Comments
 (0)