From fb524ac4e1a1c1356bf0096446530d18a64f03dd Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 5 Feb 2024 11:58:01 +0100 Subject: [PATCH] Updated config Signed-off-by: Taken --- lua/taken/plugins/alpha.lua | 23 ++++++++++++++++++++++- lua/taken/plugins/treesitter.lua | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/lua/taken/plugins/alpha.lua b/lua/taken/plugins/alpha.lua index 4cb0937..42579f1 100644 --- a/lua/taken/plugins/alpha.lua +++ b/lua/taken/plugins/alpha.lua @@ -4,6 +4,9 @@ return { dependencies = { "nvim-tree/nvim-web-devicons" }, opts = function() local dashboard = require("alpha.themes.dashboard") + require("alpha.term") + local arttoggle = false + local logo = { [[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]], [[ ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z ]], @@ -12,7 +15,25 @@ return { [[ ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ ]], [[ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]], } - dashboard.section.header.val = logo + + 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 + + dashboard.section.terminal.width = 50 + dashboard.section.terminal.height = 25 + + dashboard.opts.layout = { + dashboard.section.terminal, + { type = "padding", val = 2 }, + dashboard.section.buttons, + dashboard.section.footer, + } + else + dashboard.section.header.val = logo + end dashboard.section.buttons.val = { dashboard.button("f", " " .. "Find files", ":Telescope find_files "), dashboard.button("p", " " .. "Select project", ":Telescope neovim-project history "), diff --git a/lua/taken/plugins/treesitter.lua b/lua/taken/plugins/treesitter.lua index add0ba6..5861ee7 100644 --- a/lua/taken/plugins/treesitter.lua +++ b/lua/taken/plugins/treesitter.lua @@ -12,6 +12,7 @@ return { "vim", "vimdoc", "javascript", + "typescript", "java", "json", "regex",