feat: added NEWS.md and option to automatically show when changed (enabled by default)

This commit is contained in:
Folke Lemaitre
2023-10-12 14:38:25 +02:00
parent 442077fca3
commit 73acab1675
5 changed files with 153 additions and 9 deletions

View File

@ -19,6 +19,13 @@ local defaults = {
-- lazyvim.config.options can't be configured here since that's loaded before lazyvim setup
-- if you want to disable loading options, add `package.loaded["lazyvim.config.options"] = true` to the top of your init.lua
},
news = {
-- When enabled, NEWS.md will be shown when changed.
-- This only contains big new features and breaking changes.
lazyvim = true,
-- Same but for Neovim's news.txt
neovim = false,
},
-- icons used by other plugins
-- stylua: ignore
icons = {
@ -123,6 +130,7 @@ local defaults = {
M.json = {
data = {
version = nil, ---@type string?
hashes = {}, ---@type table<string, string>
extras = {}, ---@type string[]
},
}
@ -173,6 +181,7 @@ function M.setup(opts)
M.load("keymaps")
Util.format.setup()
Util.news.setup()
vim.api.nvim_create_user_command("LazyRoot", function()
Util.root.info()