diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-31 21:14:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-31 21:14:14 +0800 |
| commit | 933c80e8f9d7ff4ab634c14d370440702c7c8ed7 (patch) | |
| tree | e58d3a701628ad71a2b4139c4125f3f4670d0002 /runtime/lua/vim/lsp/protocol.lua | |
| parent | fa747d004a1e91b30066020f2f592e4dc5d94084 (diff) | |
| download | rneovim-933c80e8f9d7ff4ab634c14d370440702c7c8ed7.tar.gz rneovim-933c80e8f9d7ff4ab634c14d370440702c7c8ed7.tar.bz2 rneovim-933c80e8f9d7ff4ab634c14d370440702c7c8ed7.zip | |
refactor(mappings)!: mapblock_fill_dict() use API Dictionary (#20020)
This introduces the following breaking changes:
- nvim_get_keymap now always returns a LuaRef object as "callback" for a
Lua mapping regardless of how it is called. The LuaRef object can be
called from Lua and Vim script, but is lost over RPC.
- maparg() now returns a Funcref instead of a ref number as "callback"
for a Lua mapping. The Funcref can be called from Lua and Vim script,
but is lost over RPC.
This may also make nvim_get_keymap faster, but make maparg() slower.
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
0 files changed, 0 insertions, 0 deletions
