nvim/lua/plugins/alpha.lua

60 lines
3.4 KiB
Lua
Raw Normal View History

2023-12-27 11:52:56 +01:00
return {
'goolord/alpha-nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
}
dashboard.section.buttons.val = {
dashboard.button('e', 'New file', '<cmd>ene <CR>'),
dashboard.button('SPC s f', 'Search files'),
dashboard.button('SPC s g', 'Search grep'),
dashboard.button('SPC s r', 'Search resume'),
dashboard.button('SPC SPC', 'Open buffers'),
dashboard.button('SPC h t', 'Harpoon terminal'),
}
_Gopts = {
position = 'center',
hl = 'Type',
}
local function footer()
return os.date 'It was %H:%M:%S when this buffer was opened on %d. %m. %Y, a %A in %B.'
end
dashboard.section.footer.val = footer()
dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts)
end,
}