Add Custom runner for rust

This commit is contained in:
MarcHamamji 2023-02-06 17:24:16 +02:00
parent c7f90b5bba
commit 064847ec11

View File

@ -16,6 +16,7 @@ return function(buffer)
local handlers = { local handlers = {
['Run main'] = helpers.shell_handler('cargo run'), ['Run main'] = helpers.shell_handler('cargo run'),
['Test'] = helpers.shell_handler('cargo test'), ['Test'] = helpers.shell_handler('cargo test'),
['Custom'] = helpers.shell_handler('cargo ', true),
} }
for _, bin in pairs(bins) do for _, bin in pairs(bins) do