Skip to content

Commit

Permalink
Update vim.notify
Browse files Browse the repository at this point in the history
  • Loading branch information
cubatic45 authored and tanvirtin committed May 30, 2024
1 parent 3c3bf4d commit a33f032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/vgit/core/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ console.log = loop.coroutine(function(msg, hi, is_persisted)
end)

console.error = loop.coroutine(function(msg)
vim.notify(console.format(msg), 'error')
vim.notify(console.format(msg), vim.log.levels.ERROR)

return console
end)
Expand All @@ -70,7 +70,7 @@ end)

console.info = loop.coroutine(function(msg)
loop.free_textlock()
vim.notify(console.format(msg), 'info')
vim.notify(console.format(msg), vim.log.levels.INFO)

return console
end)
Expand Down

0 comments on commit a33f032

Please sign in to comment.