simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 159 forks source link

Close previously open code action windows #368

Open dodomorandi opened 1 year ago

dodomorandi commented 1 year ago

This should fix an issue that can be triggered when the LSP is slow for any reason. Now the code simply tries to cleanup primary and secondary windows before opening new ones.

I also removed the geometry from the secondary state, because it is not needed anywhere else than the function where the value is created.

@PPakalns could you check if this fixes your issue?

Closes #362