refactor(util): improved notify functions

This commit is contained in:
Folke Lemaitre 2023-01-10 08:42:20 +01:00
parent 1f17bb79b7
commit d3a963d51c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 37 additions and 26 deletions

View file

@ -180,7 +180,7 @@ function Spec:report(level)
level = level or vim.log.levels.ERROR
for _, notif in ipairs(self.notifs) do
if notif.level >= level then
Util.notify(notif.msg, notif.level)
Util.notify(notif.msg, { level = notif.level })
end
end
end