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")