Skip to content

Commit

Permalink
feat: util.info
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 22, 2022
1 parent 7288962 commit e59dc37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ function M.error(msg)
})
end

function M.info(msg)
vim.notify(msg, vim.log.levels.INFO, {
title = "lazy.nvim",
})
end

function M._dump(value, result)
local t = type(value)
if t == "number" or t == "boolean" then
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function M.setup(opts)
-- Module.add_module(Config.options.package_path .. "/opt/nvim-cmp/lua")
-- Module.add_module(Config.options.package_path .. "/opt/cmp-buffer/lua")
vim.schedule(function()
vim.notify("Reloading")
Util.info("Reloading...")
end)
Util.track("normalize")
Plugin.normalize(require(Config.options.plugins))
Expand Down

0 comments on commit e59dc37

Please sign in to comment.