-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover moves the cursor on itself #161
Comments
This is kinda by design so that you can expand nested variables. To close the window you can use |
The native LSP float is now also enterable (the bug preventing that seemed to be fixed). So |
Got it! |
You could add an additional parameter to hover that creates the window and would use it when it's defined instead of popup https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L275 . Additionally you would have to https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L192-L213 to a separate function and apply it to the generated buffer. Or you let popup accept a window/buffer creation function. You could also have a look what kind of option you can set with this line: https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L192-L213 |
@Shatur Did you have a look if the widget API covers your needs? |
@mfussenegger, hm... yes, I think this solves my issue. |
When I use
lua require("dap.ui.variables").hover()
my cursor moves inside the popup. Also, when I exit it, it does not disappear as it usually does with hover windows from LSP.The text was updated successfully, but these errors were encountered: