mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
Merge #22214 move init_default_autocmds to lua
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user