mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: README.md files are now automagically added to help. By default only when no doc/ exists
This commit is contained in:
parent
27178b5e67
commit
70ca110ca1
3 changed files with 62 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue