mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(init): use rawget when loading modules to prevent possible recursive loading with invalid module fields
This commit is contained in:
parent
dbb1764ae0
commit
d0794dcf8e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ setmetatable(M, {
|
|||
__index = function(t, k)
|
||||
---@diagnostic disable-next-line: no-unknown
|
||||
t[k] = require("snacks." .. k)
|
||||
return t[k]
|
||||
return rawget(t, k)
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue