2023-09-08 11:35:08 +02:00
|
|
|
local function get_header()
|
|
|
|
-- see https://github.com/MaximilianLloyd/ascii.nvim
|
|
|
|
return {
|
|
|
|
-- The following is a customized version!
|
|
|
|
[[ ]],
|
|
|
|
[[ ]],
|
|
|
|
[[ █ ███████ █████ ██ ]],
|
|
|
|
[[ ███ █████ █████ ]],
|
|
|
|
[[ █████ ███ ███████████████████ ███ ███████████ ]],
|
|
|
|
[[ ██ ██ █ ███ █████████████ █████ ██████████████ ]],
|
|
|
|
[[ ████ ████ ██████████ █████████ █████ █████ ████ █████ ]],
|
|
|
|
[[ ██████ ██ ███ ███ █████████ █████ █████ ████ █████ ]],
|
|
|
|
[[ ████████ ██████████████████ ████ █████ █████ ████ ██████ ]],
|
|
|
|
[[ ]],
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2023-09-06 15:44:20 +02:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
'glepnir/dashboard-nvim',
|
|
|
|
event = 'VimEnter',
|
|
|
|
config = function()
|
|
|
|
require('dashboard').setup({
|
|
|
|
|
|
|
|
theme = 'hyper',
|
|
|
|
config = {
|
2023-09-08 11:35:08 +02:00
|
|
|
header = get_header(),
|
2023-09-06 15:44:20 +02:00
|
|
|
week_header = {
|
2023-09-08 11:35:08 +02:00
|
|
|
enable = false,
|
2023-09-06 15:44:20 +02:00
|
|
|
},
|
|
|
|
shortcut = {
|
|
|
|
{
|
|
|
|
desc = ' Update',
|
|
|
|
group = '@property',
|
|
|
|
action = 'Lazy update',
|
|
|
|
key = 'u'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon = ' ',
|
|
|
|
icon_hl = '@variable',
|
|
|
|
desc = 'Files',
|
|
|
|
group = 'Label',
|
|
|
|
action = 'Telescope find_files',
|
|
|
|
key = 'f',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
desc = ' Git',
|
|
|
|
group = 'Label',
|
|
|
|
action = function()
|
|
|
|
local Util = require('plex.lib.utils')
|
|
|
|
Util.float_term({ 'lazygit'}, { cwd = Util.get_root() })
|
|
|
|
end,
|
|
|
|
key = 'g',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
desc = ' Neorg',
|
|
|
|
group = 'Number',
|
|
|
|
action = 'Neorg workspace main',
|
|
|
|
key = 'o',
|
|
|
|
},
|
2023-09-06 18:36:22 +02:00
|
|
|
{
|
|
|
|
desc = ' Sessions',
|
|
|
|
group = 'Number',
|
|
|
|
action = 'Telescope persisted',
|
|
|
|
key = 's',
|
|
|
|
},
|
2023-09-06 15:44:20 +02:00
|
|
|
},
|
2023-09-08 11:35:08 +02:00
|
|
|
|
|
|
|
project = {
|
|
|
|
enable = true,
|
|
|
|
limit = 8,
|
|
|
|
icon = '',
|
|
|
|
label = ' Projects',
|
|
|
|
action = 'Telescope find_files cwd='
|
|
|
|
},
|
|
|
|
packages = { enable = true},
|
|
|
|
mru = { limit = 10, icon = '', label = ' Last Edited'},
|
|
|
|
-- footer = { 'footer bar foo' },
|
2023-09-06 15:44:20 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
dependencies = { {'nvim-tree/nvim-web-devicons'}}
|
|
|
|
}
|
|
|
|
}
|