2023-11-25 15:58:35 +02:00
|
|
|
-- Startup dashboard
|
|
|
|
--- @type LazyPluginSpec
|
|
|
|
return {
|
|
|
|
"goolord/alpha-nvim",
|
|
|
|
config = function()
|
|
|
|
local alpha = require("alpha")
|
2024-03-19 21:49:21 +02:00
|
|
|
local dashboard = require("alpha.themes.dashboard")
|
|
|
|
dashboard.section.header.val = {
|
|
|
|
[[ __ ]],
|
|
|
|
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
|
|
|
|
[[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
|
|
|
|
[[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]],
|
|
|
|
[[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]],
|
|
|
|
[[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
|
|
|
|
}
|
|
|
|
dashboard.section.buttons.val = {
|
2024-08-20 12:40:07 +03:00
|
|
|
dashboard.button(
|
|
|
|
"<leader>p",
|
|
|
|
"📽 Open a project",
|
|
|
|
":lua require('telescope').extensions.project.project()<CR>"
|
|
|
|
),
|
2024-03-19 21:49:21 +02:00
|
|
|
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
2024-08-20 12:40:07 +03:00
|
|
|
dashboard.button("<C-f>", "🔍 Find file", "<cmd>Telescope find_files<CR>"),
|
|
|
|
dashboard.button("<C-g>", "𑪢 Grep files", "<cmd>Telescope live_grep<CR>"),
|
2024-03-19 21:49:21 +02:00
|
|
|
dashboard.button("l", "🛋 Lazy", ":Lazy<CR>"),
|
|
|
|
dashboard.button("m", "📦 Mason", ":Mason<CR>"),
|
|
|
|
dashboard.button("q", "ꭙ Quit NeoVim", ":qa<CR>"),
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Fortune in footer
|
|
|
|
dashboard.section.footer.val = require("alpha.fortune")()
|
|
|
|
|
|
|
|
dashboard.config.opts.noautocmd = true
|
|
|
|
|
|
|
|
vim.cmd([[autocmd User AlphaReady echo 'ready']])
|
|
|
|
|
|
|
|
alpha.setup(dashboard.config)
|
2023-11-25 15:58:35 +02:00
|
|
|
end,
|
|
|
|
}
|