22 lines
528 B
Lua
22 lines
528 B
Lua
return {
|
|
name = "zig: build",
|
|
desc = "Build the project (zig build)",
|
|
-- Only offered as a task when a build.zig is present in the project root.
|
|
condition = {
|
|
callback = function()
|
|
return vim.fn.filereadable(vim.fn.getcwd() .. "/build.zig") == 1
|
|
end,
|
|
},
|
|
builder = function()
|
|
return {
|
|
cmd = { "zig" },
|
|
args = { "build" },
|
|
components = {
|
|
"default",
|
|
"on_output_quickfix",
|
|
{ "on_complete_notify", statuses = { "SUCCESS", "FAILURE" } },
|
|
},
|
|
}
|
|
end,
|
|
}
|