From: Samir Benmendil Date: Sat, 1 Mar 2025 01:18:39 +0000 (+0000) Subject: nvim: provide wrappers to lazy.core.util.{error,warn,info} X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/0b478ecf96531e6bfb27404d75748214cf95f2b6 nvim: provide wrappers to lazy.core.util.{error,warn,info} --- diff --git a/nvim/lua/rmz/util/lazy.lua b/nvim/lua/rmz/util/lazy.lua index 9a64c69..81a5534 100644 --- a/nvim/lua/rmz/util/lazy.lua +++ b/nvim/lua/rmz/util/lazy.lua @@ -16,4 +16,13 @@ function M.opts(name) return Plugin.values(plugin, "opts", false) end +for _, level in ipairs({ "info", "warn", "error" }) do + M[level] = function(msg, opts) + opts = opts or {} + opts.title = opts.title or "RmZ" + local Util = require("lazy.core.util") + return Util[level](msg, opts) + end +end + return M