mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
refactor: move defaults into separate module (#25929)
Move default mappings and autocommands into a separate module and add comments and docstrings to document each of the defaults.
This commit is contained in:
@@ -413,14 +413,7 @@ int main(int argc, char **argv)
|
||||
|
||||
open_script_files(¶ms);
|
||||
|
||||
// Default mappings (incl. menus) & autocommands
|
||||
Error err = ERROR_INIT;
|
||||
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);
|
||||
nlua_init_defaults();
|
||||
|
||||
TIME_MSG("init default mappings & autocommands");
|
||||
|
||||
|
Reference in New Issue
Block a user