mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
fix(pkg): versioning and reload specs when pkg-cache is dirty
This commit is contained in:
parent
66ea0ac86e
commit
5a311d04f6
5 changed files with 59 additions and 48 deletions
|
@ -16,11 +16,12 @@ function M.get(plugin)
|
|||
end, "`" .. M.lazy_file .. "` for **" .. plugin.name .. "** has errors:")
|
||||
if not chunk then
|
||||
Util.error("Invalid `" .. M.lazy_file .. "` for **" .. plugin.name .. "**")
|
||||
return
|
||||
end
|
||||
return {
|
||||
source = "lazy",
|
||||
file = M.lazy_file,
|
||||
chunk = chunk,
|
||||
code = "function()\n" .. Util.read_file(file) .. "\nend",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue