@@ -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 {
|
||||
[[ ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ ]],
|
||||
[[ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
|
||||
}
|
||||
|
||||
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 <CR>"),
|
||||
dashboard.button("p", " " .. "Select project", ":Telescope neovim-project history <CR>"),
|
||||
|
||||
@@ -12,6 +12,7 @@ return {
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"java",
|
||||
"json",
|
||||
"regex",
|
||||
|
||||
Reference in New Issue
Block a user