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

@ -65,7 +65,9 @@ function M.install(opts)
plugins = function(plugin)
return plugin.url and not plugin._.installed
end,
}, opts)
}, opts):wait(function()
require("lazy.help").update()
end)
end
---@param opts? ManagerOpts|{lockfile?:boolean}
@ -86,6 +88,7 @@ function M.update(opts)
end,
}, opts):wait(function()
require("lazy.manage.lock").update()
require("lazy.help").update()
end)
end