Automatically expand width of the current window. Maximizes and restore it. And all this with nice animations!
MIT License
537
stars
15
forks
source link
Error executing vim.schedule lua callback: ...l/share/nvim/lazy/windows.nvim/lua/windows/lib/frame.lua:98: attempt to index local 'curwinLeaf' (a nil value) #31
I have a session plugin, which can restore my project session consists of many tabpages. But I just noticed that restoring session where there are two vertical splits on enter caused an error:
Error 23:01:23 msg_show.lua_error Error executing vim.schedule lua callback: ...l/share/nvim/lazy/windows.nvim/lua/windows/lib/frame.lua:98: attempt to index local 'curwinLeaf' (a nil value)
stack traceback:
...l/share/nvim/lazy/windows.nvim/lua/windows/lib/frame.lua:98: in function 'autowidth'
.../nvim/lazy/windows.nvim/lua/windows/calculate-layout.lua:27: in function 'autowidth'
...l/share/nvim/lazy/windows.nvim/lua/windows/autowidth.lua:40: in function ''
vim/_editor.lua: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
If I disable barbecue.nvim then the error is gone.
Reproduce
To reproduce, you can use my config (assuming you use packer.nvim):
Description
I have a session plugin, which can restore my project session consists of many tabpages. But I just noticed that restoring session where there are two vertical splits on enter caused an error:
If I disable barbecue.nvim then the error is gone.
Reproduce
To reproduce, you can use my config (assuming you use packer.nvim):
If I use the following config:
https://user-images.githubusercontent.com/24765272/209852868-a8e2d7e1-c960-4a11-9cc2-f0c75a448d5f.mov