diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2026-10-16 01:40:33 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2026-10-18 00:33:03 -0600 |
| commit | a33594631bcbef898ed97b5fd460ee28cde60f9d (patch) | |
| tree | 0cfa8220689a61c33e629680b044a6366ff7e126 /src/nvim/lua/executor.c | |
| parent | b1ff08089f640b1efb5c935c31c613e15dfc22c1 (diff) | |
| download | rneovim-a33594631bcbef898ed97b5fd460ee28cde60f9d.tar.gz rneovim-a33594631bcbef898ed97b5fd460ee28cde60f9d.tar.bz2 rneovim-a33594631bcbef898ed97b5fd460ee28cde60f9d.zip | |
[extregs] implemented aliases.
Diffstat (limited to 'src/nvim/lua/executor.c')
| -rw-r--r-- | src/nvim/lua/executor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index bb11850f9a..aa159ef94d 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -760,7 +760,7 @@ static void nlua_common_vim_init(lua_State *lstate, bool is_thread) lua_setfield(lstate, -2, "_empty_dict_mt"); // vim._extregs - lua_createtable(lstate, 0, 7); + lua_createtable(lstate, 0, 8); lua_pushcfunction(lstate, &nlua_extregs_register); lua_setfield(lstate, -2, "register"); lua_pushcfunction(lstate, &nlua_extregs_unregister); @@ -771,6 +771,8 @@ static void nlua_common_vim_init(lua_State *lstate, bool is_thread) lua_setfield(lstate, -2, "unbind"); lua_pushcfunction(lstate, &nlua_extregs_is_alias); lua_setfield(lstate, -2, "is_alias"); + lua_pushcfunction(lstate, &nlua_extregs_get_provider_name_for_alias); + lua_setfield(lstate, -2, "get_provider_name_for_alias"); lua_pushcfunction(lstate, &nlua_extregs_get_provider); lua_setfield(lstate, -2, "get_provider"); lua_setfield(lstate, -2, "_extregs"); |