After open nvim, open a buffer (for example name is 'init.lua'), move cursor the left side and rename the 'init.lua' file to 'init.lua.bak', and this error will show up.
Maybe since the 'init.lua' is renamed, but the 'init.lua' buffer is still been editing, so this error throwed out.
Issue
Environment
Here is my nvim config: https://github.com/linrongbin16/lin.nvim/tree/linrongbin16/chadtree
Re-produce
After open nvim, open a buffer (for example name is 'init.lua'), move cursor the left side and rename the 'init.lua' file to 'init.lua.bak', and this error will show up.
Maybe since the 'init.lua' is renamed, but the 'init.lua' buffer is still been editing, so this error throwed out.
Maybe it's better to just give a warning message.