Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update open buffer positions on BufEnter? #360

Closed
mrcjkb opened this issue Feb 3, 2024 · 1 comment
Closed

Update open buffer positions on BufEnter? #360

mrcjkb opened this issue Feb 3, 2024 · 1 comment

Comments

@mrcjkb
Copy link
Contributor

mrcjkb commented Feb 3, 2024

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?

autocmd({ "BufAdd", "BufWritePost" }, function()

@mrcjkb
Copy link
Contributor Author

mrcjkb commented Feb 11, 2024

This will be fixed with mrcjkb/rustaceanvim#223

@mrcjkb mrcjkb closed this as completed Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant