[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of snacks.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.2
Operating system/version
Linux 6.11.7
Describe the bug
If I set the default width for the dashboard to a value greater than the size that the screen can be rendered in (width = 100), the plugin crashes:
Error detected while processing UIEnter Autocommands for "*":
Error executing lua callback: ...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.
lua:549: table index is NaN
stack traceback:
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:549: in function '
layout'
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:660: in function '
update'
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:211: in function '
open'
...cal/share/nvim/lazy/snacks.nvim/lua/snacks/dashboard.lua:1047: in function
'setup'
...s/.local/share/nvim/lazy/snacks.nvim/lua/snacks/init.lua:126: in function <
...s/.local/share/nvim/lazy/snacks.nvim/lua/snacks/init.lua:123>
Steps To Reproduce
Update the default width to 100 and quit Neovim
Resize the window terminal. I set the width of my terminal to half that of my computer monitor (1920x1080)
Start Neovim
Expected Behavior
I think dashboard.nvim resolved this by just cutting out the edges on the header when it was overflowing.
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.2
Operating system/version
Linux 6.11.7
Describe the bug
If I set the default width for the dashboard to a value greater than the size that the screen can be rendered in (
width = 100
), the plugin crashes:Steps To Reproduce
width
to 100 and quit NeovimExpected Behavior
I think
dashboard.nvim
resolved this by just cutting out the edges on the header when it was overflowing.Repro