mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
lua: metatable for empty dict value
This commit is contained in:
@@ -243,6 +243,10 @@ function vim.schedule_wrap(cb)
|
||||
end)
|
||||
end
|
||||
|
||||
function vim.empty_dict()
|
||||
return setmetatable({}, vim._empty_dict_mt)
|
||||
end
|
||||
|
||||
-- vim.fn.{func}(...)
|
||||
vim.fn = setmetatable({}, {
|
||||
__index = function(t, key)
|
||||
|
Reference in New Issue
Block a user