aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/types.h')
-rw-r--r--src/nvim/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h
index f803b45e27..5bcc0c3e1b 100644
--- a/src/nvim/types.h
+++ b/src/nvim/types.h
@@ -16,6 +16,11 @@ typedef uint32_t u8char_T;
// Opaque handle used by API clients to refer to various objects in vim
typedef int handle_T;
+// Opaque handle to a lua value. Must be free with `executor_free_luaref` when
+// not needed anymore! LUA_NOREF represents missing reference, i e to indicate
+// absent callback etc.
+typedef int LuaRef;
+
typedef struct expand expand_T;
#endif // NVIM_TYPES_H