Closed nyngwang closed 1 year ago
I just worked around this by calling close_minimap()
before creating the floating window and open_minimap()
again when the floating window did get created.
Maybe this is caused by the fact that minimap is still tracking the old window which has been closed. Not sure.
Also, during the debugging I found a related issue about the positioning of the minimap that I need to add
vim.api.nvim_feedkeys('jk', 'n', true)
to simulate my cursor moving after opening the floating window so that the minimap will move to the right position of the floating window. Without this line the result will look like this:
I'm seeing this too when using https://github.com/linty-org/key-menu.nvim and it opens a floating window.
Please check if this works now after the fix for #9
Working for me now. Thanks for the fix!
I got the following error message when I try to edit a buffer:
Screencast: