feat(help): allow disabling README magic (#663)

This commit is contained in:
abal 2023-03-17 08:18:02 -07:00 committed by GitHub
parent b3eca0c3fb
commit e5759d202a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,10 @@ function M.update()
if Config.plugins["lazy.nvim"] then
vim.cmd.helptags(Config.plugins["lazy.nvim"].dir .. "/doc")
end
if Config.options.readme.enabled == false then
return
end
local docs = Config.options.readme.root .. "/doc"
vim.fn.mkdir(docs, "p")