mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
119 lines
6.3 KiB
Lua
119 lines
6.3 KiB
Lua
local db = require("dashboard")
|
|
|
|
-- ⣿ ⣿ c o l o r s ⣿ ⣿ --
|
|
local icon_color = 'Keyword'
|
|
local keymap_color = 'Function'
|
|
local description_color = 'String'
|
|
|
|
-- for printing the neovim version under the image
|
|
local version = vim.version()
|
|
|
|
db.setup({
|
|
theme = 'doom',
|
|
config = {
|
|
header = {
|
|
' ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⠿⢛⡛⣛⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣶⣾⣷⣿⣿⣶⣶⣤⣌⣙⣛⡻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣬⡙⠿⠿⠟⠛⢛⣛⠛⠛⠛⠛⠻⠿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢛⣉⣩⣵⣶⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣦⣍⣉⣙⡛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟ ',
|
|
' ⣿⣿⣿⣿⣿⡿⠟⣫⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⠉⠛⣿⣿⣿⣿⣿⣿⡟⢠ ',
|
|
' ⣿⣿⡟⢉⣱⡶⢟⣉⢥⣮⣭⡛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣮⣙⠿⠿⠿⠛⢡⣿ ',
|
|
' ⡿⢋⣴⣿⡏⣠⣿⡁⠀⢸⣿⣿⡎⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⡀⣰⣿⣿ ',
|
|
' ⣴⣿⣿⣿⡇⠹⣿⣿⣿⣿⡿⢟⣼⣿⣿⣿⣿⠿⠟⣛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡙⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣷⣬⣭⠭⠵⠶⠿⣟⣛⣭⣷⣶⣴⣿⣟⣻⣦⡝⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢫⣵⣶⠶⢶⣮⣍⢻⣿⣿⣿⣎ ',
|
|
' ⣿⣿⣿⣿⢻⣭⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣿⣿⣅⠀⢀⣿⣿⡇⢻⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣮⡃⢀⡀⠀⠀⠀⠀⠉⠛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣮⣍⡻⢿⣿⣿⣿⣿⣿⣧⡹⣿⣿⣿⣿⣿⣿⢇⣾⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣦⣙⠿⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠛⠿⣿⣿⣿⣿⣷⣬⡻⣿⣿⣿⣿⣷⣮⣭⣉⣉⣩⣴⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣷⣬⡻⡓⠦⣤⣤⣤⣄⣀⣀⣀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠛⢿⣿⣎⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡘⠷⣶⣾⣿⣿⡿⠿⠿⠿⢿⣟⣛⣛⣛⣛⣛⣉⣭⣭⣭⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⡻⣭⣶⣦⣤⣤⣴⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⠿⢋⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣫ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣫⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⣵⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢏⣴⣿⣿⣿⣿ ',
|
|
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢡⣿⣿⣿⣿⣿⣿ ',
|
|
' ',
|
|
"N E O V I M - v " .. version.major .. "." .. version.minor,
|
|
' ',
|
|
},
|
|
center = {
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "Recents ",
|
|
desc_hl = description_color,
|
|
key = "r",
|
|
key_hl = keymap_color,
|
|
action = "Telescope oldfiles",
|
|
},
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "Find File ",
|
|
desc_hl = description_color,
|
|
key = "f",
|
|
key_hl = keymap_color,
|
|
action = "Telescope find_files",
|
|
},
|
|
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "New File ",
|
|
desc_hl = description_color,
|
|
key = "n",
|
|
key_hl = keymap_color,
|
|
action = "DashboardNewFile",
|
|
},
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "Load Last Session ",
|
|
desc_hl = description_color,
|
|
key = "L",
|
|
key_hl = keymap_color,
|
|
action = "SessionLoad",
|
|
},
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "Update Plugins ",
|
|
desc_hl = description_color,
|
|
key = "u",
|
|
key_hl = keymap_color,
|
|
action = "PackerUpdate",
|
|
},
|
|
{
|
|
icon = " ",
|
|
icon_hl = icon_color,
|
|
desc = "Exit ",
|
|
desc_hl = description_color,
|
|
key = "q",
|
|
key_hl = keymap_color,
|
|
action = "exit",
|
|
},
|
|
},
|
|
footer = {
|
|
"type :help<Enter> or <F1> for on-line help"
|
|
}
|
|
}
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd('Filetype', {
|
|
pattern = 'dashboard',
|
|
group = vim.api.nvim_create_augroup('Dashboard_au', { clear = true }),
|
|
callback = function()
|
|
vim.cmd [[
|
|
setlocal buftype=nofile
|
|
setlocal nonumber norelativenumber nocursorline noruler
|
|
nnoremap <buffer> f <cmd>Telescope find_files<CR>
|
|
nnoremap <buffer> r <cmd>Telescope oldfiles<CR>
|
|
nnoremap <buffer> n <cmd>DashboardNewFile<CR>
|
|
nnoremap <buffer> <leader>en <cmd>DashboardNewFile<CR>
|
|
nnoremap <buffer> L <cmd>SessionLoad<CR>
|
|
nnoremap <buffer> u <cmd>PackerUpdate<CR>
|
|
nnoremap <buffer> q <cmd>exit<CR>
|
|
]]
|
|
end
|
|
})
|