kickstart.nvim/lua/peteskiis/plugins/alpha.lua

37 lines
1.9 KiB
Lua
Raw Normal View History

2024-11-20 16:12:52 -05:00
return {
2024-11-24 14:20:39 -05:00
'goolord/alpha-nvim',
event = 'VimEnter',
2024-11-20 16:12:52 -05:00
config = function()
2024-11-24 14:20:39 -05:00
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
2024-11-20 16:12:52 -05:00
-- Set header
dashboard.section.header.val = {
2024-11-24 14:20:39 -05:00
' ',
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ',
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ',
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ',
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ',
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ',
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ',
' ',
2024-11-20 16:12:52 -05:00
}
-- Set menu
dashboard.section.buttons.val = {
dashboard.button('n', ' > New File', '<cmd>ene<CR>'),
dashboard.button('SPC ee', ' > Toggle file explorer', '<cmd>NvimTreeToggle<CR>'),
2024-11-24 14:20:39 -05:00
dashboard.button('SPC ff', '󰱼 > Find File', '<cmd>Telescope find_files<CR>'),
dashboard.button('SPC fg', ' > Find Word', '<cmd>Telescope live_grep<CR>'),
2024-11-24 14:20:39 -05:00
dashboard.button('SPC wr', '󰁯 > Restore Session For Current Directory', '<cmd>SessionRestore<CR>'),
dashboard.button('q', ' > Quit NVIM', '<cmd>qa<CR>'),
2024-11-20 16:12:52 -05:00
}
-- Send config to alpha
alpha.setup(dashboard.opts)
-- Disable folding on alpha buffer
2024-11-24 14:20:39 -05:00
vim.cmd [[autocmd FileType alpha setlocal nofoldenable]]
2024-11-20 16:12:52 -05:00
end,
}