39 lines
2 KiB
Lua
39 lines
2 KiB
Lua
return {
|
|
'goolord/alpha-nvim',
|
|
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
event = 'VimEnter',
|
|
config = function()
|
|
local alpha = require 'alpha'
|
|
local dashboard = require 'alpha.themes.dashboard'
|
|
|
|
dashboard.section.header.val = {
|
|
' ',
|
|
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗',
|
|
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║',
|
|
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║',
|
|
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║',
|
|
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║',
|
|
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝',
|
|
' ',
|
|
}
|
|
|
|
dashboard.section.buttons.val = {
|
|
dashboard.button('f', ' Find file', '<cmd>Telescope find_files<cr>'),
|
|
dashboard.button('r', ' Recent files', '<cmd>Telescope oldfiles<cr>'),
|
|
dashboard.button('g', ' Grep text', '<cmd>Telescope live_grep<cr>'),
|
|
dashboard.button('c', ' Configuration', '<cmd>e $MYVIMRC<cr>'),
|
|
dashboard.button('l', ' Lazy', '<cmd>Lazy<cr>'),
|
|
dashboard.button('q', ' Quit', '<cmd>qa<cr>'),
|
|
}
|
|
|
|
alpha.setup(dashboard.opts)
|
|
|
|
-- Disable folding on alpha buffer
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
pattern = 'alpha',
|
|
callback = function()
|
|
vim.opt_local.foldenable = false
|
|
end,
|
|
})
|
|
end,
|
|
}
|