fix(loader): lua modules can be links instead of files. Fixes #66

This commit is contained in:
Folke Lemaitre 2022-12-21 16:27:56 +01:00
parent 7a57ea28d3
commit b7c489b08f
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ function M.source_runtime(...)
Util.walk(dir, function(path, name, t)
local ext = name:sub(-3)
name = name:sub(1, -5)
if t == "file" and (ext == "lua" or ext == "vim") and not M.disabled_rtp_plugins[name] then
if (t == "file" or t == "link") and (ext == "lua" or ext == "vim") and not M.disabled_rtp_plugins[name] then
files[#files + 1] = path
end
end)