Dep now supports lazy loading

This commit is contained in:
2025-04-21 15:32:41 -05:00
parent 5b7b7f610f
commit 1d0b486e08
7 changed files with 768 additions and 881 deletions

View File

@ -69,7 +69,7 @@ A package must be declared in the following format.
"user/package",
-- [function] Code to run after the package is loaded into neovim.
function()
load = function()
require "package".setup(...)
end,
@ -83,6 +83,10 @@ A package must be declared in the following format.
os.execute(...)
end,
-- [function] Code used to determine when the package should be loaded.
lazy = function(load)
end,
-- [string] Overrides the short name of the package.
-- Defaults to a substring of the full name after '/'.
as = "custom_package",
@ -95,6 +99,10 @@ A package must be declared in the following format.
-- Defaults to whatever the remote configured as their HEAD, which is usually "master".
branch = "develop",
-- [string] Overrides the commit ref to target
-- Defaults to the latest commit on the current branch
commit = "e76cb03",
-- [boolean] Prevents the package from being loaded.
disable = true,