rcarriga / nvim-dap-ui

A UI for nvim-dap
MIT License
2.67k stars 99 forks source link

Dapi UI - focuses Hydra.nvim floating window for no reason. #369

Closed JoseConseco closed 4 months ago

JoseConseco commented 4 months ago

I had issues with dap-ui and nvim.hydra - where dau-ui would bring focus to hydra popup -hotkeys list. After some testing it looks like window focusing is bug in dap-up: We already set focusable = false on all the hint windows. It seems like dap UI are using **nvim_set_current_win** which can ignore **focusable**. To me, this seems like unexpected behavior in DAP/DAP UI. Is there way to prevent dap-ui from bringing focus to hydra, on stepping through code? I'm not 100% sure though, if this is issue from dap-ui or nvim.dap...

JoseConseco commented 4 months ago

my bad I had wrong dap.init event - uplicated in two places. ..