local M = {} function M.config() local status_ok, alpha = pcall(require, 'alpha') if not status_ok then return end local dashboard = require('alpha.themes.dashboard') dashboard.section.header.val = { 'NeoVim' } dashboard.section.buttons.val = { dashboard.button('f', 'Find File', ':Telescope find_files'), dashboard.button('w', 'Find Word', ':Telescope live_grep'), dashboard.button('o', 'Recent Files', ':Telescope oldfiles'), dashboard.button('e', 'Open Tree', ':NvimTreeToggle'), dashboard.button('s', 'Load Session', ':SessionManager load_current_dir_session'), dashboard.button('q', 'Quit', ':qa'), } alpha.setup(dashboard.config) end return M