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.lua | |
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.lua')
-rw-r--r-- | src/nvim/eval.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index d7a17d6e15..3db0d27018 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -10,6 +10,7 @@ -- Defaults to BASE_NONE (function cannot be used as a method). -- func Name of the C function which implements the VimL function. Defaults to -- `f_{funcname}`. +-- fast Function can run in |api-fast| events. Defaults to false. local varargs = function(nr) return {nr} @@ -205,7 +206,7 @@ return { hlID={args=1, base=1}, hlexists={args=1, base=1}, hostname={}, - iconv={args=3, base=1}, + iconv={args=3, base=1, fast=true}, indent={args=1, base=1}, index={args={2, 4}, base=1}, input={args={1, 3}, base=1}, |