From c77958a9ae129ecdc8a2d3e31c6bf84922269f24 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:11:45 -0400 Subject: [PATCH] changed how project runs --- lua/Polydev/c.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/Polydev/c.lua b/lua/Polydev/c.lua index 630bc04..0bc6296 100644 --- a/lua/Polydev/c.lua +++ b/lua/Polydev/c.lua @@ -173,7 +173,7 @@ end function M.build() local root = M.get_project_root() if not root then return print("Error: Project root not found.") end - local cmd = "cd " .. "../build && cmake " .. M.config.build_attributes .. " .. && make" + local cmd = "cd " .. root .. "/build && cmake .. --preset default" .. " && cmake --build ." local term_buf = M.open_float_terminal(cmd) vim.api.nvim_buf_set_option(term_buf, "modifiable", true) local output = vim.fn.system(cmd)