From f3b0c8827860e11b5a24a8fa6381dbd4018fca32 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 11 Aug 2023 12:57:08 +0300 Subject: [PATCH] please work --- config/nvim/lua/core/plugin_config/dashboard.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/config/nvim/lua/core/plugin_config/dashboard.lua b/config/nvim/lua/core/plugin_config/dashboard.lua index 3da7baf3..f949abb6 100644 --- a/config/nvim/lua/core/plugin_config/dashboard.lua +++ b/config/nvim/lua/core/plugin_config/dashboard.lua @@ -86,17 +86,7 @@ M.banner_alt_2 = { function M.get_sections() local header = { type = "text", - val = function() - 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, + val = banner, opts = { position = "center", hl = "Label",