From 4b965b5785776b6d258d57ce8fb7efa1a8170a7b Mon Sep 17 00:00:00 2001 From: Jan Lafferton <138496837+jla2000@users.noreply.github.com> Date: Wed, 15 Nov 2023 04:29:04 +0100 Subject: [PATCH] Move cmake generation into async part (#171) Co-authored-by: jlafferton --- lua/cmake-tools/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmake-tools/init.lua b/lua/cmake-tools/init.lua index a744325e..24330a1b 100644 --- a/lua/cmake-tools/init.lua +++ b/lua/cmake-tools/init.lua @@ -1440,9 +1440,9 @@ function cmake.select_cwd(cwd_path) --if new_path:is_dir() then config.cwd = vim.fn.resolve(input) -- end + cmake.generate({ bang = false, fargs = {} }, nil) end) ) - cmake.generate({ bang = false, fargs = {} }, nil) elseif cwd_path.args then config.cwd = vim.fn.resolve(cwd_path.args) cmake.generate({ bang = false, fargs = {} }, nil)