Add toggle for welcome message

This commit is contained in:
Curt Bushko 2023-10-14 15:33:25 -04:00
parent f29543f2c9
commit 63ca1865e7
2 changed files with 5 additions and 1 deletions

View file

@ -23,6 +23,8 @@ local defaults = {
-- When enabled, NEWS.md will be shown when changed.
-- This only contains big new features and breaking changes.
lazyvim = true,
-- When enabled and no news show welcome message
welcome = true,
-- Same but for Neovim's news.txt
neovim = false,
},

View file

@ -16,7 +16,9 @@ function M.setup()
vim.schedule(function()
if Config.news.lazyvim then
if not Config.json.data.news["NEWS.md"] then
M.welcome()
if Config.news.welcome then
M.welcome()
end
end
M.lazyvim(true)
end