Updated config

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-02-05 17:51:35 +01:00
parent fb524ac4e1
commit 9d1fa2f113
2 changed files with 444 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ return {
opts = function()
local dashboard = require("alpha.themes.dashboard")
require("alpha.term")
local arttoggle = false
local arttoggle = true
local logo = {
[[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]],
@@ -16,14 +16,21 @@ return {
[[ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
}
local art = {
-- { name, width, height }
{ "tohru", 62, 17 },
}
if arttoggle == true then
dashboard.opts.opts.noautocmd = true
dashboard.section.terminal.opts.redraw = true
local path = os.getenv("HOME") .. "/asciiart/kanna"
dashboard.section.terminal.command = "cat " .. path
local path = vim.fn.stdpath("config") .. "/assets/"
-- local random = math.random(1, #art)
local currentart = art[1]
dashboard.section.terminal.command = "cat " .. path .. currentart[1]
dashboard.section.terminal.width = 50
dashboard.section.terminal.height = 25
dashboard.section.terminal.width = currentart[2]
dashboard.section.terminal.height = currentart[3]
dashboard.opts.layout = {
dashboard.section.terminal,