Open
Description
I see that we have rust_analyzer_run_single
to do a rust-analyzer.runSingle
.
To do something like rust_analyzer_debug_single
, rather than simply cargo ${cargoArgs} ${cargoExtraArgs} -- ${executableArgs}
a debug_single for rust would do something like following:
- if
cargoArgs[0] == "test"
, shell outcargo test --no-run --message-format=json -q ${cargoArgs} ${cargoExtraArgs}
- if
cargoArgs[0] == "run"
, shell outcargo build --message-format=json -q ${cargoArgs} ${cargoExtraArgs}
- Parse the output json to Then use something like
termDebug
orvimspector
. It seems like there's a need for an external dependency.
coc-rust-analyzer
does something similar.
Anyway, I looked into this a bunch and but I my vimscript is pretty weak/in-existent so I figured I'd write an issue before doing it.
Is there interest in this addition?
Metadata
Metadata
Assignees
Labels
No labels