I've noticed the following behaviour with my rustaceanvim adapter:
:e foo.rs
:Neotest run " runs tests
:e bar.rs
:Neotest run " outputs No tests found
:w
:Neotest run " runs tests
It appears that, the positions for the previous buffer are cleared,
and not found in the update (possibly because there's no LSP client attached to the inactive buffer).
Would it be feasible to add a BufEnter autocmd that updates the positions for the current buffer, if there are none?
I've noticed the following behaviour with my rustaceanvim adapter:
It appears that, the positions for the previous buffer are cleared, and not found in the update (possibly because there's no LSP client attached to the inactive buffer).
Would it be feasible to add a
BufEnter
autocmd that updates the positions for the current buffer, if there are none?https://github.com/nvim-neotest/neotest/blob/89a5b1fc22ee5d459262955fe564c3d14e35fd67/lua/neotest/client/init.lua#L395