From d22889b008c4c7a4be30d9e5204a84c2b190aadb Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:28:34 -0400 Subject: [PATCH] Update c.lua --- lua/Polydev/c.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/Polydev/c.lua b/lua/Polydev/c.lua index 3112514..861ec59 100644 --- a/lua/Polydev/c.lua +++ b/lua/Polydev/c.lua @@ -235,10 +235,10 @@ function M.build() return end - local project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name - print("Project Root: " .. project_root) + local build_project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name .. "/build" - local into_build = "cd " .. project_root .. "/build" + local into_build = "cd " .. build_project_root + print("Project Root: " .. build_project_root) local into_build_status = vim.fn.system(into_build) if vim.v.shell_error ~= 0 then print("Could not go into build dir:\n" .. into_build_status)