21 lines
455 B
Lua
21 lines
455 B
Lua
return {
|
|
name = "odin: run",
|
|
desc = "Build and run (odin run .)",
|
|
condition = {
|
|
callback = function()
|
|
return vim.fn.glob("*.odin") ~= "" or vim.fn.expand("%:e") == "odin"
|
|
end,
|
|
},
|
|
builder = function()
|
|
return {
|
|
cmd = { "odin" },
|
|
args = { "run", "." },
|
|
components = {
|
|
"default",
|
|
"on_output_quickfix",
|
|
{ "on_complete_notify", statuses = { "SUCCESS", "FAILURE" } },
|
|
},
|
|
}
|
|
end,
|
|
}
|