nvim-config/lua/plugin-config/dashboard.lua

79 lines
2.3 KiB
Lua

local db = require("dashboard")
local function foot()
local datetime = os.date(" %d-%m-%Y  %H:%M:%S")
local version = vim.version()
local nvim_version_info = "  v" .. version.major .. "." .. version.minor .. "." .. version.patch
return datetime .. nvim_version_info
end
db.setup({
theme = "doom",
config = {
header = {
" :*+++++********++=-:. ",
" #- =+*+",
" .% %",
" ++ .#",
" -# #.",
" *= :# ",
" .%. *- ",
" +* .% ",
" %- == ",
" -@++++++++++======----::#. ",
" *- .....::::--** ",
" .% %= ",
" ++ =%: ",
" .+++**+++%%##########%%%%%%%%%%%%%***-",
" .+ .* -+ ..:=+*%%%%%. ",
" +: :+ *: :+%* ",
" % *. .+- *: ",
" =+ %==-::-===. .-=+* ",
" :%= #. .. .:--=+-:+:+ ",
" +%%%= +*---+----:* = :+: ",
"=%%%%%%= .==-*. .*:---=:. .... ",
" ",
},
center = {
{
icon = "",
icon_hl = "Title",
desc = "Find File ",
desc_hl = "String",
key = "b",
keymap = "SPC f f",
key_hl = "Number",
action = "Telescope find_files find_command=rg,--hidden,--files",
},
{
icon = "",
desc = "Recently opened files ",
desc_hl = "String",
key = "a",
keymap = "SPC f r",
key_hl = "Number",
action = "Telescope oldfiles",
},
{
icon = "",
desc = "Open Project ",
desc_hl = "String",
key = "c",
keymap = "SPC f p",
key_hl = "Number",
action = "Telescope Project ",
},
{
icon = "",
desc = "File Browser ",
desc_hl = "String",
key = "d",
keymap = "SPC f b",
key_hl = "Number",
action = "Telescope file_browser",
},
},
footer = { foot() }, --your footer
},
})