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