refactor(utils): log notifications

This commit is contained in:
Smirnov Oleksandr 2024-04-17 01:57:16 +03:00
parent 517150e5c2
commit a2710261bf

View file

@ -1,3 +1,5 @@
local c = require "gopher.config"
local log = require "gopher._utils.log"
local utils = {} local utils = {}
---@param msg string ---@param msg string
@ -7,6 +9,7 @@ function utils.deferred_notify(msg, lvl)
vim.notify(msg, lvl, { vim.notify(msg, lvl, {
title = c.___plugin_name, title = c.___plugin_name,
}) })
log.info(msg)
end, 0) end, 0)
end end
@ -17,6 +20,7 @@ function utils.notify(msg, lvl)
vim.notify(msg, lvl, { vim.notify(msg, lvl, {
title = c.___plugin_name, title = c.___plugin_name,
}) })
log.info(msg)
end end
-- safe require -- safe require