Dep now supports lazy loading
This commit is contained in:
10
README.md
10
README.md
@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user