mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	refactor(startup): Load init.lua with do_sorce
This was init.lua will be logged in startuptime
This commit is contained in:
		| @@ -1811,7 +1811,7 @@ static bool do_user_initialization(void) | |||||||
|  |  | ||||||
|   char_u *init_lua_path = (char_u *)stdpaths_user_conf_subpath("init.lua"); |   char_u *init_lua_path = (char_u *)stdpaths_user_conf_subpath("init.lua"); | ||||||
|   if (os_path_exists(init_lua_path) |   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); |     os_setenv("MYVIMRC", (const char *)init_lua_path, 1); | ||||||
|     char_u *vimrc_path = (char_u *)stdpaths_user_conf_subpath("init.vim"); |     char_u *vimrc_path = (char_u *)stdpaths_user_conf_subpath("init.vim"); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shadmansaleh
					shadmansaleh