diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-02-14 19:13:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 19:13:12 -0500 |
commit | 1539f713639eb1c661da9f9003fd58bf4cbbc615 (patch) | |
tree | 549a5a5ae5d23995ad058e677a8025e4aece2f66 /src/nvim/main.c | |
parent | 05faa8f30ad770d4e4ead41cec601ccced8fb97f (diff) | |
parent | c5b34fa55483d84d1de32937ffff0b7cf1aeba78 (diff) | |
download | rneovim-1539f713639eb1c661da9f9003fd58bf4cbbc615.tar.gz rneovim-1539f713639eb1c661da9f9003fd58bf4cbbc615.tar.bz2 rneovim-1539f713639eb1c661da9f9003fd58bf4cbbc615.zip |
Merge #22214 move init_default_autocmds to lua
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index c12de07077..52069a6742 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -407,19 +407,16 @@ int main(int argc, char **argv) open_script_files(¶ms); - // Default mappings (incl. menus) + // Default mappings (incl. menus) & autocommands Error err = ERROR_INIT; - Object o = NLUA_EXEC_STATIC("return vim._init_default_mappings()", + Object o = NLUA_EXEC_STATIC("return vim._init_defaults()", (Array)ARRAY_DICT_INIT, &err); assert(!ERROR_SET(&err)); api_clear_error(&err); assert(o.type == kObjectTypeNil); api_free_object(o); - TIME_MSG("init default mappings"); - - init_default_autocmds(); - TIME_MSG("init default autocommands"); + TIME_MSG("init default mappings & autocommands"); bool vimrc_none = strequal(params.use_vimrc, "NONE"); |