File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ function cmake.setup(values)
6666 cmake .register_autocmd ()
6767 cmake .register_autocmd_provided_by_users ()
6868 cmake .register_scratch_buffer (config .executor .name , config .runner .name )
69+ if not vim .uv .fs_stat (const .cmake_kits_path ) then
70+ scanner .scan_for_kits ()
71+ end
6972end
7073
7174--- @param callback fun ( result : cmake.Result )
@@ -215,10 +218,7 @@ function cmake.generate(opt, callback)
215218
216219 -- if exists cmake-kits.json, kit is used to set
217220 -- environmental variables and args.
218- local kits_config = kits .parse (const .cmake_kits_path , config .cwd )
219- if not kits_config then
220- kits_config = scanner .scan_for_kits ()
221- end
221+ local kits_config = kits .parse (const .cmake_config_path , config .cwd )
222222 if kits_config and not config .kit then
223223 return cmake .select_kit (function (result )
224224 if not result :is_ok () then
You can’t perform that action at this time.
0 commit comments