Skip to content

Commit

Permalink
fix(neotest): prevent coloured output when using cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 8, 2024
1 parent f21da67 commit eec1937
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/rustaceanvim/neotest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ function NeotestAdapter.build_spec(run_args)
if is_cargo_test then
-- cargo test needs to pass --color=never to the test runner too
table.insert(args, '--color=never')
else
table.insert(args, 2, '--color')
table.insert(args, 3, 'never')
end
---@type rustaceanvim.neotest.RunSpec
---@diagnostic disable-next-line: missing-fields
Expand Down

0 comments on commit eec1937

Please sign in to comment.