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
there's a sentence in the README that describes that foreign_keys and exit configuration options actually overwrite the behavior specified by a color. At least I could not get it working.
What is my problem?
I want to create a DAP hydra that has the policy of an amaranth hydra. However, since DAP stepping/continuing is asynchronous, I have to use a pink hydra. When using a pink hydra and specifying { foreign_keys = 'warn', exit = true }, the behavior of the hydra does not change, i.e. it still processes inputs that are not mapped to a head.
What would solve my problem?
option 1: I can create a pink hydra and specify foreign_keys and exit and the configuration actually changes the behavior of the hydra
option 2: I can create a amaranth hydra that works with the asynchronous events of DAP (I tried the trick with { on_key = function() vim.wait(20) end, color = 'amaranth' } that is used in the proposed git hydra, however that does not work as expected with the DAP since when i use dap.continue() it actually pastes some text into the popup created by dap.continue()
going back to when that code was written, the docs said the same thing. Guess it just slipped through at the time and hasn't been caught since.
However, I'm not sure fixing this will even fix the problem you're having. color and exit/foreign_keys do have to be reconciled one way or the other, so you currently can't have a Pink hydra that behaves like an Amaranth one, that would just be made into an Amaranth hydra.
edit. I guess in this case, 'warn' + exit = true would give you a Teal Hydra.
ahh okay, makes sense that it does not work how I expect it to if the documentation is inconsistent.
Okay, if I understood you correctly: with the current implementation it is basically not possible to have an -- I'll use a different terminology here -- async hydra (pink) that uses foreign_keys = 'warn'?
Yeah currently impossible. I'd be open to changing it though (at the very least I will update the docs). I'm not sure how hard it would be to do though.
Hello everyone,
there's a sentence in the README that describes that
foreign_keys
andexit
configuration options actually overwrite the behavior specified by a color. At least I could not get it working.What is my problem?
I want to create a DAP hydra that has the policy of an
amaranth
hydra. However, since DAP stepping/continuing is asynchronous, I have to use a pink hydra. When using a pink hydra and specifying{ foreign_keys = 'warn', exit = true }
, the behavior of the hydra does not change, i.e. it still processes inputs that are not mapped to a head.What would solve my problem?
foreign_keys
andexit
and the configuration actually changes the behavior of the hydra{ on_key = function() vim.wait(20) end, color = 'amaranth' }
that is used in the proposed git hydra, however that does not work as expected with the DAP since when i usedap.continue()
it actually pastes some text into the popup created bydap.continue()
Example code:
The text was updated successfully, but these errors were encountered: