19 lines
639 B
Lua
19 lines
639 B
Lua
local function config()
|
|
local alpha = require('alpha')
|
|
local dashboard = require('alpha.themes.dashboard')
|
|
|
|
dashboard.section.header.val = { 'NeoVim' }
|
|
dashboard.section.buttons.val = {
|
|
dashboard.button('f', 'Find File', ':Telescope find_files<cr>'),
|
|
dashboard.button('w', 'Find Word', ':Telescope live_grep<cr>'),
|
|
dashboard.button('o', 'Recent Files', ':Telescope oldfiles<cr>'),
|
|
dashboard.button('e', 'Open Tree', ':NvimTreeToggle<cr>'),
|
|
dashboard.button('s', 'Load Session', ':SessionManager load_current_dir_session<cr>'),
|
|
dashboard.button('q', 'Quit', ':qa<cr>'),
|
|
}
|
|
|
|
alpha.setup(dashboard.config)
|
|
end
|
|
|
|
return config
|