From 06daaf3c565939800a380961901d4af9ce8d1ee4 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 17 Aug 2024 01:16:58 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(dashboard):=20add=20preliminar?= =?UTF-8?q?y=20support=20for=20png=20images=20in=20dashboard=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Probably doesn't work yet, but this implements the check for it so they can be handled similarly to ANSI graphics --- lua/plugins/dashboard.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua index ac0a30b..c16a5f1 100644 --- a/lua/plugins/dashboard.lua +++ b/lua/plugins/dashboard.lua @@ -119,8 +119,8 @@ return { }, } - -- if logo_file extension is not .ans then read the content and add it to the header - if logo_file:sub(-4) ~= ".ans" then + -- if logo_file extension is not .ans or .png then read the content and add it to the header + if logo_file:sub(-4) ~= ".ans" and logo_file:sub(-4) ~= ".png" then local logo_content = vim.fn.readfile(logo_path .. logo_file) local LOGO = "\n\n" .. table.concat(logo_content, "\n") .. "\n\n" opts.config.header = vim.split(LOGO, "\n")