Skip to content

run the current .rs without moving cursor to codelens #328

Answered by mrcjkb
ssh352 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

There's currently no such feature.

  • You can use :RustLsp runnables|debuggables|testables, which will prompt you for a target,
    and :RustLsp! runnables|debuggables|testables will rerun the previous target, if one exists.
  • In my personal neovim config, I have added a module for navigating code lenses in the same way you can navigate diagnostics.
    Here is an example for a keymap I have set up that uses it.

It might be possible for me to add a command that runs the closest target to the cursor.
I've created an issue for it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ssh352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants