diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-04-29 17:26:57 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-05-17 10:29:33 +0100 |
commit | 5c41165c8e89356bdb7d1b5835d1f79725b62d2c (patch) | |
tree | 1417c52d442a0091f3b29833d0d75210ad9e87ae /src/nvim/eval/funcs.h | |
parent | 6613f58cebde7db4e69709b84d511c32a7c4ce32 (diff) | |
download | rneovim-5c41165c8e89356bdb7d1b5835d1f79725b62d2c.tar.gz rneovim-5c41165c8e89356bdb7d1b5835d1f79725b62d2c.tar.bz2 rneovim-5c41165c8e89356bdb7d1b5835d1f79725b62d2c.zip |
feat(lua): allow some viml functions to run in fast
This change adds the necessary plumbing to annotate functions in funcs.c
as being allowed in run in luv fast events.
Diffstat (limited to 'src/nvim/eval/funcs.h')
-rw-r--r-- | src/nvim/eval/funcs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.h b/src/nvim/eval/funcs.h index 4ab4c8f800..5f8d81c989 100644 --- a/src/nvim/eval/funcs.h +++ b/src/nvim/eval/funcs.h @@ -19,6 +19,7 @@ typedef struct { uint8_t min_argc; ///< Minimal number of arguments. uint8_t max_argc; ///< Maximal number of arguments. uint8_t base_arg; ///< Method base arg # (1-indexed), BASE_NONE or BASE_LAST. + bool fast; ///< Can be run in |api-fast| events VimLFunc func; ///< Function implementation. FunPtr data; ///< Userdata for function implementation. } EvalFuncDef; |