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

@ -11,6 +11,7 @@ local LazyUtil = require("lazy.core.util")
---@field plugin lazyvim.util.plugin
---@field extras lazyvim.util.extras
---@field inject lazyvim.util.inject
---@field news lazyvim.util.news
local M = {}
---@type table<string, string|string[]>
@ -137,14 +138,6 @@ function M.on_load(name, fn)
end
end
function M.changelog()
local lv = require("lazy.core.config").plugins.LazyVim
local float = require("lazy.util").open(lv.dir .. "/CHANGELOG.md")
vim.wo[float.win].spell = false
vim.wo[float.win].wrap = false
vim.diagnostic.disable(float.buf)
end
-- Wrapper around vim.keymap.set that will
-- not create a keymap if a lazy key handler exists.
-- It will also set `silent` to true by default.