warn fix notify

pull/324/head
ray-x 1 year ago
parent b114ccfac6
commit e49597d0d1

@ -462,19 +462,27 @@ end
-- log and messages -- log and messages
function util.warn(msg) function util.warn(msg)
vim.notify('WARN: ' .. msg, vim.log.levels.WARN) vim.schedule(function()
vim.notify('WARN: ' .. msg, vim.log.levels.WARN)
end)
end end
function util.error(msg) function util.error(msg)
vim.notify('ERR: ' .. msg, vim.log.levels.ERROR) vim.schedule(function()
vim.notify('ERR: ' .. msg, vim.log.levels.ERROR)
end)
end end
function util.info(msg) function util.info(msg)
vim.notify('INF: ' .. msg, vim.log.levels.INFO) vim.schedule(function()
vim.notify('INFO: ' .. msg, vim.log.levels.INFO)
end)
end end
function util.debug(msg) function util.debug(msg)
vim.notify('DEBUG: ' .. msg, vim.log.levels.DEBUG) vim.schedule(function()
vim.notify('DEBUG: ' .. msg, vim.log.levels.DEBUG)
end)
end end
function util.rel_path(folder) function util.rel_path(folder)

Loading…
Cancel
Save