Files
neovim-config/lua/taken/plugins/dashboard.lua
Taken 9556024c93 Added types
Signed-off-by: Taken <taken@mairimashita.org>
2024-03-17 16:34:11 +01:00

99 lines
4.7 KiB
Lua

--- @type LazyPluginSpec
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
cmd = "Dashboard",
enabled = false,
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local db = require("dashboard")
local stats = require("lazy").stats()
local version = vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch
local plugins_count = stats.count
local ms = math.floor(stats.startuptime + 0.5)
local time = vim.fn.strftime("%H:%M:%S")
local date = vim.fn.strftime("%d.%m.%Y")
db.setup({
theme = "doom",
config = {
header = {
[[ ]],
[[ ================= =============== =============== ======== ======== ]],
[[ \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . // ]],
[[ ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .|| ]],
[[ || . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . || ]],
[[ ||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .|| ]],
[[ || . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\ . . . . || ]],
[[ ||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\_ . .|. .|| ]],
[[ || . _|| || || || || ||_ . || || . _|| || || || |\ `-_/| . || ]],
[[ ||_-' || .|/ || || \|. || `-_|| ||_-' || .|/ || || | \ / |-_.|| ]],
[[ || ||_-' || || `-_|| || || ||_-' || || | \ / | `|| ]],
[[ || `' || || `' || || `' || || | \ / | || ]],
[[ || .===' `===. .==='.`===. .===' /==. | \/ | || ]],
[[ || .==' \_|-_ `===. .===' _|_ `===. .===' _-|/ `== \/ | || ]],
[[ || .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \/ | || ]],
[[ || .==' _-' `-__\._-' `-_./__-' `' |. /| | || ]],
[[ ||.==' _-' `' | /==.|| ]],
[[ ==' _-' \/ `== ]],
[[ \ _-' `-_ / ]],
[[ `'' ``' ]],
[[ [ TIP: To exit Neovim, just power off your computer. ] ]],
[[ ]],
},
center = {
{
icon = "󰍉 ",
icon_hl = "main",
desc = "Find files",
desc_hl = "main",
key = "f",
key_hl = "main",
action = "Telescope find_files",
},
{
icon = "",
icon_hl = "main",
desc = "Select project",
desc_hl = "main",
key = "p",
key_hl = "main",
action = "Telescope project",
},
{
icon = "",
icon_hl = "main",
desc = "Neorg",
desc_hl = "main",
key = "n",
key_hl = "main",
action = "Neorg workspace main",
},
{
icon = "󰚰 ",
icon_hl = "main",
desc = "Lazy sync",
desc_hl = "main",
key = "l",
key_hl = "main",
action = "Lazy sync",
},
},
footer = {
""
.. version
.. " "
.. plugins_count
.. " plugins in "
.. ms
.. "ms 󰃭 "
.. date
.. ""
.. time,
},
},
})
end,
}