aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/converter.h
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-07-11 17:40:31 -0400
committerGitHub <noreply@github.com>2020-07-11 17:40:31 -0400
commit1ca67a73c0ba680eb8328e68bea31f839855dd29 (patch)
tree6f770f564307cb8a31f6ead427114267fcba3953 /src/nvim/lua/converter.h
parenta695da7d3fac19624d458e3f2980b4c0e55f50a4 (diff)
parent6360cf7ce87407bd8a519b9a17f45b2148291904 (diff)
downloadrneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.tar.gz
rneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.tar.bz2
rneovim-1ca67a73c0ba680eb8328e68bea31f839855dd29.zip
Merge pull request #12507 from tjdevries/tjdevries/viml_lua_callbacks
[RFC] Allow passing lua functions and closures into vim functions.
Diffstat (limited to 'src/nvim/lua/converter.h')
-rw-r--r--src/nvim/lua/converter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/lua/converter.h b/src/nvim/lua/converter.h
index 542c56ea3e..8601a32418 100644
--- a/src/nvim/lua/converter.h
+++ b/src/nvim/lua/converter.h
@@ -9,6 +9,15 @@
#include "nvim/func_attr.h"
#include "nvim/eval.h"
+typedef struct {
+ LuaRef func_ref;
+ LuaRef table_ref;
+} LuaCallable;
+
+typedef struct {
+ LuaCallable lua_callable;
+} LuaCFunctionState;
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "lua/converter.h.generated.h"
#endif