Closed blithefeng closed 1 month ago
I'm using nvim-dap and nvim-dap-ui for debugging. And I want to use hydra for step over, step into, .etc. But when I hit n, nothing happened. The action was done when I pressed another key not in hydra heads.
hydra def:
Hydra({ name = "Debug", mode = { "n" }, body = "<leader>z", config = { invoke_on_body = true, }, heads = { { "b", dap.toggle_breakpoint, { desc = "Toggle Breakpoint" }, }, { "c", function() require("dap").continue() end, { desc = "Continue", nowait = true }, }, { "a", function() require("dap").continue({ before = get_args }) end, { desc = "Run with args", nowait = true }, }, { "i", function() require("dap").step_into() end, { desc = "Step Into", nowait = true }, }, { "n", function() require("dap").step_over() end, { desc = "Step Over", nowait = true }, }, { "o", function() require("dap").step_out() end, { desc = "Step Out", nowait = true }, }, { "q", function() require("dap").terminate() end, { desc = "Terminate", nowait = true }, }, }, })
Here is my nvim-dap hydra configuration
Did my provided configuration help? Are we good to close this issue out?
Closing this out. Lemme know if you need more help
I'm using nvim-dap and nvim-dap-ui for debugging. And I want to use hydra for step over, step into, .etc. But when I hit n, nothing happened. The action was done when I pressed another key not in hydra heads.
hydra def: