Open mhdna opened 1 year ago
This error also occurs if you delete the file. The working solution is to manually unload the buffer. lf
should behave normally afterwards.
I made a little change to the code, and it seems to resolve the problem. However, I am not sure whether this change will introduce any new unknown issues.
Hi @lmburns , do you have some time to take a look at the change?
https://github.com/tanloong/lf.nvim/commit/ffd7e71fb090068931df50993e686140622995ec
@tanloong Wouldn't it make more sense to do a check around this line https://github.com/tanloong/lf.nvim/blob/ffd7e71fb090068931df50993e686140622995ec/lua/lf/main.lua#L157
What happens if you replace curfile with null?
Is anyone able to fix this? This is a very annoying bug
If you try renaming the currently open file then start
lf
, this error message shows up and you'll never be able to openlf
afterwards unless you restart Neovim, even if you switch to the newly created file or to other buffers: