diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-02-28 00:07:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 00:07:31 +0100 |
commit | fad33b095fcc2607ea9f058b5fa76cda9483a24e (patch) | |
tree | 8d453a80320e49c2748f03240db8a4338384c9a1 /src/nvim/api/private/dispatch.c | |
parent | 1b5767aa3480c0cdc43f7a4b78f36a14e85a182f (diff) | |
parent | 991e472881bf29805982b402c1a010cde051ded3 (diff) | |
download | rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.tar.gz rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.tar.bz2 rneovim-fad33b095fcc2607ea9f058b5fa76cda9483a24e.zip |
Merge pull request #14661 from tjdevries/tjdevries/lua_autocmd_v2
lua: autocmds take 2: electric autoroo
Diffstat (limited to 'src/nvim/api/private/dispatch.c')
-rw-r--r-- | src/nvim/api/private/dispatch.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/nvim/api/private/dispatch.c b/src/nvim/api/private/dispatch.c index 8ab7743e01..f670f06357 100644 --- a/src/nvim/api/private/dispatch.c +++ b/src/nvim/api/private/dispatch.c @@ -6,22 +6,30 @@ #include <msgpack.h> #include <stdbool.h> -#include "nvim/api/buffer.h" #include "nvim/api/deprecated.h" -#include "nvim/api/extmark.h" #include "nvim/api/private/defs.h" #include "nvim/api/private/dispatch.h" #include "nvim/api/private/helpers.h" +#include "nvim/log.h" +#include "nvim/map.h" +#include "nvim/msgpack_rpc/helpers.h" +#include "nvim/vim.h" + +// =========================================================================== +// NEW API FILES MUST GO HERE. +// +// When creating a new API file, you must include it here, +// so that the dispatcher can find the C functions that you are creating! +// =========================================================================== +#include "nvim/api/autocmd.h" +#include "nvim/api/buffer.h" +#include "nvim/api/extmark.h" #include "nvim/api/tabpage.h" #include "nvim/api/ui.h" #include "nvim/api/vim.h" #include "nvim/api/vimscript.h" #include "nvim/api/win_config.h" #include "nvim/api/window.h" -#include "nvim/log.h" -#include "nvim/map.h" -#include "nvim/msgpack_rpc/helpers.h" -#include "nvim/vim.h" static Map(String, MsgpackRpcRequestHandler) methods = MAP_INIT; |