Moving to individual plugin files for lazy

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-03 13:36:05 +02:00
parent e9fad30daf
commit 93d665867b
37 changed files with 1130 additions and 1205 deletions

View File

@@ -1,82 +1,95 @@
local staus, db = pcall(require, "dashboard")
if not staus then
return
end
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
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")
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",
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,
},
},
{
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,
}