fix: adjust dashboard layout calculation for dynamic resizing

This commit is contained in:
2024-09-14 22:09:19 -04:00
parent 9df3cc52e9
commit 3d758d1ebc
+2 -1
View File
@@ -50,7 +50,8 @@ M.alpha = {
end
dashboard.section.header.opts.hl = "Conditional"
dashboard.section.footer.opts.hl = "AlphaFooter"
dashboard.opts.layout[1].val = 10
dashboard.opts.layout[1].val =
vim.fn.max({ 2, vim.fn.floor(vim.fn.winheight(0) * 0.2) })
return dashboard
end,
}