Changed build for c.lua

This commit is contained in:
DarthMooMancer
2025-04-07 09:16:11 -04:00
parent e2283735a6
commit 2bcef344a8
+1 -1
View File
@@ -172,7 +172,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 " .. root .. "/build && cmake .. && make"
local cmd = "cd " .. "../build && cmake .. && make"
local term_buf = M.open_float_terminal(cmd)
vim.api.nvim_buf_set_option(term_buf, "modifiable", true)
local output = vim.fn.system(cmd)