Closed joehannes closed 9 months ago
Hello, I think this is a pretty straight forward bug. There is a plugin in your config that changes the window id, and then my global variable that handles the base window, called "original_win" isn't being updated. I will try to push a hotfix very soon. Thanks for letting me know.
Awesome!!
Just FYI: Following plugins in my config would be the suspects I guess: folke/zen-mode.nvim => zen-mode anuvyklack/windows.nvim => maximize (plus auto-slight-resizing & animation stuff via below deps) anuvyklack/middleclass anuvyklack/animation.nvim
Hi again, I have pushed a hotfix that I believe should fix these issues. Inform me if that's the case so I can close it.
hey, almost there I think ... or then, actually there ...
But: In the same context of (split windows and also as of windows in other tabs) I've found another bug. I shall report in another ticket. Please feel free to close this one.
When moving the mouse over an lsp-message in a maximized or zen-mode window/pane I get the desired floating-window with it's corresponding message.
Bug: When moving the mouse away, the window doesn't disappear, instead I get an error:
zen-mode-error:
maximize-window-error:
While it seems the error is possibly caused by other plugins (I don't know who's responsibility it should be?) ... I'd love to see you safeguard for this error in this plugin.
This plugin gets a big like from me, and I can see it being useful quite a lot...
Anyway: I frequently use maximized windows because I focus on a pane while having splits in my layout. If the error isn't fixed, I guess I'll have to disable/uninstall it and look for another solution to display my lsp-errors, which would be a pity, especially since this plugin brings value on top of my necessity. I can't have my workflow disrupted this way, having to manually/:q close my overlay every time I hover an lsp-error in a currently maximized window.
Solution: Can you safeguard the error and make the window disappear anyway? Maybe you can keep the window-id of the window in which the last overlay was triggered in some global var??? And remove the window when the caught error occurs - instead of having nvim through an error?