Skip to content

Commit 87a7b0b

Browse files
authored
fix(neotest): prevent coloured output when using cargo-nextest (#610)
1 parent f21da67 commit 87a7b0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/rustaceanvim/neotest/init.lua

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ function NeotestAdapter.build_spec(run_args)
301301
if is_cargo_test then
302302
-- cargo test needs to pass --color=never to the test runner too
303303
table.insert(args, '--color=never')
304+
else
305+
table.insert(args, 2, '--color')
306+
table.insert(args, 3, 'never')
304307
end
305308
---@type rustaceanvim.neotest.RunSpec
306309
---@diagnostic disable-next-line: missing-fields

0 commit comments

Comments
 (0)