mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +00:00
refactor: logging
This commit is contained in:
parent
765773a176
commit
6c7ef7e27a
10 changed files with 130 additions and 80 deletions
|
@ -106,15 +106,15 @@ function M.build(task)
|
|||
if
|
||||
not M.check({
|
||||
error = function(msg)
|
||||
task:notify_error(msg:gsub("[{}]", "`"))
|
||||
task:error(msg:gsub("[{}]", "`"))
|
||||
end,
|
||||
warn = function(msg)
|
||||
task:notify_warn(msg)
|
||||
task:warn(msg)
|
||||
end,
|
||||
ok = function(msg) end,
|
||||
})
|
||||
then
|
||||
task:notify_warn({
|
||||
task:log({
|
||||
"",
|
||||
"This plugin requires `luarocks`. Try one of the following:",
|
||||
" - fix your `luarocks` installation",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue