diff options
author | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-12 14:57:45 +0600 |
---|---|---|
committer | shadmansaleh <shadmansaleh3@gmail.com> | 2021-06-13 00:27:52 +0600 |
commit | cdbc733ec4302c6cc4269c99b725b32595a01c20 (patch) | |
tree | 22d600e24f43f6eb5ddaa6d4bcb9e0645b61ca7d /src | |
parent | 1f280b582f32c8ab7de41a34472fb856d5d2f7c4 (diff) | |
download | rneovim-cdbc733ec4302c6cc4269c99b725b32595a01c20.tar.gz rneovim-cdbc733ec4302c6cc4269c99b725b32595a01c20.tar.bz2 rneovim-cdbc733ec4302c6cc4269c99b725b32595a01c20.zip |
refactor(startup): Load init.lua with do_sorce
This was init.lua will be logged in startuptime
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 53043d293e..7d7eba2105 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1811,7 +1811,7 @@ static bool do_user_initialization(void) char_u *init_lua_path = (char_u *)stdpaths_user_conf_subpath("init.lua"); if (os_path_exists(init_lua_path) - && nlua_exec_file((const char *)init_lua_path)) { + && do_source(init_lua_path, true, DOSO_VIMRC)) { os_setenv("MYVIMRC", (const char *)init_lua_path, 1); char_u *vimrc_path = (char_u *)stdpaths_user_conf_subpath("init.vim"); |