simrat39 / rust-tools.nvim

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

Can not run or debug anything from hover_actions #285

Closed ovidiu-ionescu closed 1 year ago

ovidiu-ionescu commented 1 year ago

If I start hover_actions with the cursor over a test, the menu shows up with two options image but I can not move the selection with the keyboard. If I press enter with the Run entry active, the popup just closes.

:RustRunnables allows me to run the test.

Also, if I use the mouse to activate Debug, it seems to start and the cursor moves to the first breakpoint.

Gremious commented 1 year ago

Your cursor does not look like it's inside the action window. Re-run :RustHoverActions while it's already on screen, and it should "focus" it.

By default, the first call to e.g. :RustHoverActions will only create the window, while a second call will move you into it (since most of the time you just want to glance at the e.g. type info)

This can be toggled to be default behavior with hover_actions.focus (see config)

ovidiu-ionescu commented 1 year ago

That was indeed the case, thanks for the answer,