Open scottming opened 1 year ago
ok, if my lines is { "Test passed in 0.00ms", ""}
, I can fix the cursor position error, but the buffer size issue still exists.
Furthermore, I think the windows displayed by these two commands are very different. I suggest keeping them consistent.
<cmd>lua require('neotest').run.run()<cr>
<cmd>lua require("neotest").output.open({ enter = true })<cr>
This is my test output
This is the test output buf:
My expectation is that the cursor can move to the first line, and also, the height and width of float do not need to be so big.
I have checked this function: https://github.com/nvim-neotest/neotest/blob/master/lua/neotest/consumers/output.lua#L41, but I don't know the specific reason, my lines variable is:
{ "Test passed in 0.00ms"}