mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(spec): added support for importing multiple spec modules with import = "foobar"
This commit is contained in:
parent
3974a6cbe3
commit
39b66027a5
4 changed files with 57 additions and 40 deletions
|
@ -17,7 +17,7 @@ function M.enable()
|
|||
if M.timer then
|
||||
M.timer:stop()
|
||||
end
|
||||
if type(Config.spec) == "string" then
|
||||
if #Config.parsed.modules > 0 then
|
||||
M.timer = vim.loop.new_timer()
|
||||
M.root = vim.fn.stdpath("config") .. "/lua"
|
||||
M.check(true)
|
||||
|
@ -55,7 +55,9 @@ function M.check(start)
|
|||
end
|
||||
end
|
||||
|
||||
Util.lsmod(Config.spec --[[@as string]], check)
|
||||
for _, modname in ipairs(Config.parsed.modules) do
|
||||
Util.lsmod(modname, check)
|
||||
end
|
||||
|
||||
for file in pairs(M.files) do
|
||||
if not checked[file] then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue