mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
Merge pull request #11470 from bfredl/emptytable
metatable for empty dict value
This commit is contained in:
@@ -717,6 +717,16 @@ vim.NIL *vim.NIL*
|
||||
is equivalent to a missing value: `{"foo", nil}` is the same as
|
||||
`{"foo"}`
|
||||
|
||||
vim.empty_dict() *vim.empty_dict()*
|
||||
Creates a special table which will be converted to an empty
|
||||
dictionary when converting lua values to vimL or API types. The
|
||||
table is empty, and this property is marked using a metatable. An
|
||||
empty table `{}` without this metatable will default to convert to
|
||||
an array/list.
|
||||
|
||||
Note: if numeric keys are added to the table, the metatable will be
|
||||
ignored and the dict converted to a list/array anyway.
|
||||
|
||||
vim.rpcnotify({channel}, {method}[, {args}...]) *vim.rpcnotify()*
|
||||
Sends {event} to {channel} via |RPC| and returns immediately.
|
||||
If {channel} is 0, the event is broadcast to all channels.
|
||||
|
Reference in New Issue
Block a user