Closed cryptomilk closed 1 month ago
It looks like this with telescope dap:
Ping?
Pushed a couple of changes:
program = require("dap.utils").pick_file,
in a configuration entry, without wrapping it in another function to provide the arguments.pick_one
is already coroutine aware and the callback is optional.Open questions to me:
find
as fallback for nvim 0.10 and earlier.vim.glob.to_lpeg()
- might be more intuitive given that it is about file paths, but could also be confusing if it is different to pick_process
A fallback for nvim 0.10 would be nice as it just has been released :-)
A fallback for nvim 0.10 would be nice as it just has been released :-)
Ah, I got the numbers mixed. It requires 0.10. The fallback would make it work in 0.9 or earlier.
Ah, I got the numbers mixed. It requires 0.10. The fallback would make it work in 0.9 or earlier.
Ah, then I would argue new feature new nvim version required :-)
Decided to add in the find
fallback (but left bfs
out). I also changed the result to return dap.ABORT, so it doesn't attempt to start the debug session if one cancels the dialog.
This implements a file picker, to pick the file you want to execute with the debugger.
Fixes #1130