Problem: After 28b7c2d (found with bisect) the hover preview window does not close when :edit'ing another file, even when you move the cursor. Solution: Change the BufLeave to target the original buffer, not the preview buffer.
28b7c2d
vim.pack