Fildo7525/pretty_hover

[Request] Expose float close function

miversen33 opened this issue · 3 comments

First, fantastic plugin! I currently use hover.nvim (the inspiration for this), however I am not against switching to something I have more control over :)

That said, IMO the float close functionality should be exposed (something like require("hover").close()?)

My use case here would be that if I press ESC, I would want the hover window to close even if I am not currently in it (I don't usually shift my cursor focus to the documentation window)

Thoughts on something like that? I would be willing to submit a PR for it if you are open to it :)

Yea sure why not. If you have a use case for it, I think you will not be alone.

It is a small change so I can make it as a next commit or you can create a PR.

I have just merged it.