nvim-dap
nvim-dap copied to clipboard
Enhance console's exception file name with highlighted color and ability goto the file
Problem Statement
Hello everyone, I think it'd be great if the exception file name is highlighted as it'd be much easier to identify which file is causing the issue. Furthermore, if we could click on it to open the file directly and pointing the cusor to the line number, it'd save a lot of time.
Please check the below image showing the different between Intellij's console and current nvim-dap's console.
-
intellij
-
nvim-dap
Ideas or possible solutions
No response
Furthermore, if we could click on it to open the file directly and pointing the cusor to the line number, it'd save a lot of time
The vim way to do that is to use gf
or gF
, see :help gf
and :help gF
.
For java you may have to set the path
option to something like this:
setlocal path=.,src/main/java/**,src/test/java/**,**/src/main/java/**,**/src/test/java/**
As for highlighting: nvim-dap core will stay language agnostic, so adding custom stacktrace highlighting is out-of-scope. I could imagine providing some way to intercept the output from a debug-adapter and process it instead.