Bug trying to edit a `package.json` with unsaved changes
E5108: Error executing lua .../opt/package-info.nvim/lua/package-info/modules/core.lua:173: Vim(edit):E37 : No write since last change (add ! to override)
You can't run :e on an file with unsaved changes
https://github.com/vuki656/package-info.nvim/blob/10de4d0d50ec1d4d26118c4aa067a9d09e370c9c/lua/package-info/modules/core.lua#L171-L175
I'm able to reproduce this.
What do you think would be the preferred way to handle this?
Also, please follow the issue template next time.
Oh sorry, I didn't know there was an issue template, if you create an issue from this button it does not show any template

Could I ask, what does __reload_buffer do? I just removed it and it works
I don't know why you need to create a view and immediately restore it.
Hey, sorry for the late reply regarding this, I forgot about it.
Here is the PR regarding that.
TLDR: it keeps the cursor position after reload.