Update c.lua
This commit is contained in:
+3
-3
@@ -235,10 +235,10 @@ function M.build()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name
|
local build_project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name .. "/build"
|
||||||
print("Project Root: " .. project_root)
|
|
||||||
|
|
||||||
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)
|
local into_build_status = vim.fn.system(into_build)
|
||||||
if vim.v.shell_error ~= 0 then
|
if vim.v.shell_error ~= 0 then
|
||||||
print("Could not go into build dir:\n" .. into_build_status)
|
print("Could not go into build dir:\n" .. into_build_status)
|
||||||
|
|||||||
Reference in New Issue
Block a user