mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat: lazy setup with either a plugins module, or a plugins spec
This commit is contained in:
parent
f0894be69d
commit
af8b8e128e
8 changed files with 54 additions and 53 deletions
|
@ -7,8 +7,24 @@ local M = {}
|
|||
M.loading = {}
|
||||
|
||||
function M.setup()
|
||||
-- install missing plugins
|
||||
if Config.options.install_missing then
|
||||
Util.track("install")
|
||||
for _, plugin in pairs(Config.plugins) do
|
||||
if not plugin._.installed then
|
||||
vim.cmd("do User LazyInstallPre")
|
||||
require("lazy.manage").install({ wait = true })
|
||||
break
|
||||
end
|
||||
end
|
||||
Util.track()
|
||||
end
|
||||
|
||||
-- setup handlers
|
||||
Util.track("handlers")
|
||||
local Handler = require("lazy.core.handler")
|
||||
Handler.setup()
|
||||
Util.track()
|
||||
end
|
||||
|
||||
function M.init_plugins()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue