please work
This commit is contained in:
parent
f465676111
commit
f3b0c88278
|
@ -86,17 +86,7 @@ M.banner_alt_2 = {
|
||||||
function M.get_sections()
|
function M.get_sections()
|
||||||
local header = {
|
local header = {
|
||||||
type = "text",
|
type = "text",
|
||||||
val = function()
|
val = banner,
|
||||||
local alpha_wins = vim.tbl_filter(function(win)
|
|
||||||
local buf = vim.api.nvim_win_get_buf(win)
|
|
||||||
return vim.api.nvim_buf_get_option(buf, "filetype") == "alpha"
|
|
||||||
end, vim.api.nvim_list_wins())
|
|
||||||
|
|
||||||
if vim.api.nvim_win_get_height(alpha_wins[#alpha_wins]) < 36 then
|
|
||||||
return M.banner_small
|
|
||||||
end
|
|
||||||
return banner
|
|
||||||
end,
|
|
||||||
opts = {
|
opts = {
|
||||||
position = "center",
|
position = "center",
|
||||||
hl = "Label",
|
hl = "Label",
|
||||||
|
|
Loading…
Reference in a new issue