Skip to content

Commit a33f032

Browse files
cubatic45tanvirtin
authored andcommitted
Update vim.notify
1 parent 3c3bf4d commit a33f032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/vgit/core/console.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ console.log = loop.coroutine(function(msg, hi, is_persisted)
5050
end)
5151

5252
console.error = loop.coroutine(function(msg)
53-
vim.notify(console.format(msg), 'error')
53+
vim.notify(console.format(msg), vim.log.levels.ERROR)
5454

5555
return console
5656
end)
@@ -70,7 +70,7 @@ end)
7070

7171
console.info = loop.coroutine(function(msg)
7272
loop.free_textlock()
73-
vim.notify(console.format(msg), 'info')
73+
vim.notify(console.format(msg), vim.log.levels.INFO)
7474

7575
return console
7676
end)

0 commit comments

Comments
 (0)