diff options
Diffstat (limited to 'src/nvim/lua/executor.h')
-rw-r--r-- | src/nvim/lua/executor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.h b/src/nvim/lua/executor.h index 9ff869e221..557c0b025e 100644 --- a/src/nvim/lua/executor.h +++ b/src/nvim/lua/executor.h @@ -44,6 +44,9 @@ typedef enum { kRetLuaref, ///< return value becomes a single Luaref, regardless of type (except NIL) } LuaRetMode; +/// Maximum number of errors in vim.ui_attach() and decor provider callbacks. +enum { CB_MAX_ERROR = 3, }; + /// To use with kRetNilBool for quick truthiness check #define LUARET_TRUTHY(res) ((res).type == kObjectTypeBoolean && (res).data.boolean == true) |