You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely sure (this was taken over from rust-tools.nvim).
I believe it may be to avoid overriding existing dap rust or lldb configurations.
Perhaps a better approach to this would be to load dap.configurations.rust and to extend it with the discovered configurations, and then to query nvim-dap for configurations to run.
That is how I do it in haskell-tools.nvim.
But maybe this is for another PR. I'll create an issue for it 😄
Yeah, this is something I was thinking about in reverse: how to let :lua require'dap'.toggle_breakpoint() work sensibly in case someone doesn't want to go through the debuggables selection screen. Prior to using these plugins, my approach was just to hit F5 and have the debugger start.
One possibility would be to check for the presence of dap.configurations.rust:
if present, extend it into dap.configurations.rnm-lldb (or whatever) to avoid overwriting it
if absent, attempt to sensibly define dap.configurations.rust
optionally, also define dap.configurations.rnm-lldb
The goal being the user doesn't have to care which configuration is used. Another option: allow an override e.g.
I believe it may be to avoid overriding existing dap
rust
orlldb
configurations.Perhaps a better approach to this would be to load
dap.configurations.rust
and to extend it with the discovered configurations, and then to query nvim-dap for configurations to run.That is how I do it in haskell-tools.nvim.
But maybe this is for another PR. I'll create an issue for it 😄
Originally posted by @mrcjkb in #64 (comment)
The text was updated successfully, but these errors were encountered: