fix(reload): set lvim modules to nil correctly (#1898)

This commit is contained in:
Xavier Young 2021-11-04 02:26:56 +08:00 committed by GitHub
parent 7a813780a1
commit e05ced8ec3
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ function M:reload()
local lvim_modules = {}
for module, _ in pairs(package.loaded) do
if module:match "lvim.core" then
package.loaded.module = nil
package.loaded[module] = nil
table.insert(lvim_modules, module)
end
end