Updated config

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-02-05 11:58:01 +01:00
parent 733e5a41d6
commit fb524ac4e1
2 changed files with 23 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ 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")
require("alpha.term")
local arttoggle = false
local logo = { local logo = {
[[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]], [[ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z]],
[[ ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ 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 dashboard.section.header.val = logo
end
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 neovim-project history <CR>"), dashboard.button("p", "" .. "Select project", ":Telescope neovim-project history <CR>"),

View File

@@ -12,6 +12,7 @@ return {
"vim", "vim",
"vimdoc", "vimdoc",
"javascript", "javascript",
"typescript",
"java", "java",
"json", "json",
"regex", "regex",