feat: README.md files are now automagically added to help. By default only when no doc/ exists

This commit is contained in:
Folke Lemaitre 2022-12-15 14:07:37 +01:00
parent 27178b5e67
commit 70ca110ca1
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 62 additions and 1 deletions

View file

@ -75,6 +75,11 @@ M.defaults = {
},
},
},
readme = {
root = vim.fn.stdpath("state") .. "/lazy/readme",
files = { "README.md" },
skip_if_doc_exists = true,
},
debug = false,
}
@ -112,6 +117,7 @@ function M.setup(spec, opts)
vim.fn.stdpath("config"),
}
end
vim.opt.rtp:append(M.options.readme.root)
-- disable plugin loading since we do all of that ourselves
vim.go.loadplugins = false