Updating logo

This commit is contained in:
2023-09-11 12:11:42 +02:00
parent 85a6895e49
commit d4dc08a03b

View File

@@ -4,15 +4,15 @@ return {
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
opts = function() opts = function()
local dashboard = require("alpha.themes.dashboard") local dashboard = require("alpha.themes.dashboard")
local logo = [[ local logo = {
██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z [[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]],
██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z [[ ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z ]],
██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z [[ ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z ]],
██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z [[ ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z ]],
███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ [[ ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ ]],
╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ [[ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
]] }
dashboard.section.header.val = vim.split(logo, "\n") dashboard.section.header.val = logo
dashboard.section.buttons.val = { dashboard.section.buttons.val = {
dashboard.button("f", "" .. "Find files", ":Telescope find_files <CR>"), dashboard.button("f", "" .. "Find files", ":Telescope find_files <CR>"),
dashboard.button("p", "" .. "Select project", ":Telescope project <CR>"), dashboard.button("p", "" .. "Select project", ":Telescope project <CR>"),
@@ -49,7 +49,16 @@ return {
local ms = math.floor(stats.startuptime + 0.5) local ms = math.floor(stats.startuptime + 0.5)
local time = vim.fn.strftime("%H:%M:%S") local time = vim.fn.strftime("%H:%M:%S")
local date = vim.fn.strftime("%d.%m.%Y") local date = vim.fn.strftime("%d.%m.%Y")
dashboard.section.footer.val = "" .. version .. " " .. plugins_count .. " plugins in " .. ms .. "ms 󰃭 " .. date .. "" .. time dashboard.section.footer.val = ""
.. version
.. " "
.. plugins_count
.. " plugins in "
.. ms
.. "ms 󰃭 "
.. date
.. ""
.. time
pcall(vim.cmd.AlphaRedraw) pcall(vim.cmd.AlphaRedraw)
end, end,
}) })