mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Add toggle for welcome message
This commit is contained in:
parent
f29543f2c9
commit
63ca1865e7
2 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue