On quitting nvim close_minimap is called and this triggers lots of "invalid buffer" error messages, when this code tries to delete the minimap window buffer. At least in my setup this happens.
So I added a check to test if the buffer is valid before deleting it.
On quitting nvim close_minimap is called and this triggers lots of "invalid buffer" error messages, when this code tries to delete the minimap window buffer. At least in my setup this happens.
So I added a check to test if the buffer is valid before deleting it.