Files
nvim-config/lua/overseer/template/user/odin_run.lua
T

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,
}