fix: adjust dashboard layout calculation for dynamic resizing
This commit is contained in:
+2
-1
@@ -50,7 +50,8 @@ M.alpha = {
|
|||||||
end
|
end
|
||||||
dashboard.section.header.opts.hl = "Conditional"
|
dashboard.section.header.opts.hl = "Conditional"
|
||||||
dashboard.section.footer.opts.hl = "AlphaFooter"
|
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
|
return dashboard
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user