35 lines
1.7 KiB
Lua
35 lines
1.7 KiB
Lua
|
local alpha = require('alpha')
|
||
|
local dashboard = require('alpha.themes.dashboard')
|
||
|
|
||
|
-- Set header
|
||
|
dashboard.section.header.val = {
|
||
|
' ',
|
||
|
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ',
|
||
|
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ',
|
||
|
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ',
|
||
|
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ',
|
||
|
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ',
|
||
|
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ',
|
||
|
' ',
|
||
|
}
|
||
|
|
||
|
-- Set menu
|
||
|
dashboard.section.buttons.val = {
|
||
|
dashboard.button('e', ' > New file', ':ene <BAR> startinsert <CR>'),
|
||
|
dashboard.button('f', ' > Find file', 'Telescope find_files<CR>'),
|
||
|
dashboard.button('r', ' > Recent', ':Telescope oldfiles<CR>'),
|
||
|
dashboard.button('s', ' > Settings', ':e $MYVIMRC | :cd %:p:h | split . | wincmd k | pwd<CR>'),
|
||
|
dashboard.button('q', ' > Quit NVIM', ':qa<CR>'),
|
||
|
}
|
||
|
|
||
|
-- Send config to alpha
|
||
|
alpha.setup(dashboard.opts)
|
||
|
|
||
|
vim.api.nvim_create_autocmd('FileType', {
|
||
|
pattern = 'alpha',
|
||
|
callback = function()
|
||
|
vim.opt_local.laststatus = 0
|
||
|
vim.opt_local.cursorline = false
|
||
|
end,
|
||
|
})
|