mirror of
https://github.com/neovim/neovim.git
synced 2026-07-29 20:08:03 +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