Skip to content

Commit

Permalink
feat: add notification to recommend running :Lazy update again afte…
Browse files Browse the repository at this point in the history
…r AstroNvim updates
  • Loading branch information
mehalter committed Apr 18, 2024
1 parent 566ab8f commit 3c81105
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lua/astronvim/plugins/_astrocore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,23 @@ astronvim.init()

return {
{ "folke/lazy.nvim", dir = vim.env.LAZY },
{ "AstroNvim/AstroNvim", priority = 10000, lazy = false },
{
"AstroNvim/AstroNvim",
build = function()
if astronvim.config.pin_plugins and astronvim.config.update_notification ~= false then
vim.schedule(
function()
require("astrocore").notify(
"Stable plugin versions may have been updated\nRun `:Lazy update` again to get these updates.",
vim.log.levels.WARN
)
end
)
end
end,
priority = 10000,
lazy = false,
},
{ import = "astronvim.lazy_snapshot", cond = astronvim.config.pin_plugins },
{
"AstroNvim/astrocore",
Expand Down

0 comments on commit 3c81105

Please sign in to comment.