diff options
author | Kelly Lin <findkellylin@gmail.com> | 2023-02-19 22:33:57 +1100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-03-06 13:45:59 +0100 |
commit | 0e7196438d8f856eecd7c90e160b79cbc8fb08dc (patch) | |
tree | d8e928f7f951014efe18f5f1a85d1221cdee0211 /src/nvim/lua/executor.c | |
parent | f9a46391ab5961fe6c6b7d1efdc96befdd495c11 (diff) | |
download | rneovim-0e7196438d8f856eecd7c90e160b79cbc8fb08dc.tar.gz rneovim-0e7196438d8f856eecd7c90e160b79cbc8fb08dc.tar.bz2 rneovim-0e7196438d8f856eecd7c90e160b79cbc8fb08dc.zip |
feat(lua): add semver api
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r-- | src/nvim/lua/executor.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index bb461a7f13..5ec91aebb0 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -165,17 +165,6 @@ static int nlua_pcall(lua_State *lstate, int nargs, int nresults) return status; } -/// Gets the version of the current Nvim build. -/// -/// @param lstate Lua interpreter state. -static int nlua_nvim_version(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL -{ - Dictionary version = version_dict(); - nlua_push_Dictionary(lstate, version, true); - api_free_dictionary(version); - return 1; -} - static void nlua_luv_error_event(void **argv) { char *error = (char *)argv[0]; @@ -739,10 +728,6 @@ static bool nlua_state_init(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL // vim.types, vim.type_idx, vim.val_idx nlua_init_types(lstate); - // neovim version - lua_pushcfunction(lstate, &nlua_nvim_version); - lua_setfield(lstate, -2, "version"); - // schedule lua_pushcfunction(lstate, &nlua_schedule); lua_setfield(lstate, -2, "schedule"); |