Files
tnvim/modules/home-manager/nvim/old/lua/plugins/alpha.lua
2023-12-21 13:05:49 +05:30

41 lines
2.7 KiB
Lua

-- return {
-- 'goolord/alpha-nvim',
-- dependencies = { 'nvim-tree/nvim-web-devicons' },
-- config = function()
-- require 'alpha'.setup(require 'alpha.themes.startify'.config)
-- end
-- }
return {
'goolord/alpha-nvim',
event = 'VimEnter',
config = function()
local dashboard = require 'alpha.themes.dashboard'
dashboard.section.header.val = {
"██████████████████████████████████████████████████",
"█░░░░░░░░░░░░░░█░░░░░░██░░░░░░█░░░░░░░░██░░░░░░░░█",
"█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█░░░░░░▄▀░░░░░░█░░▄▀░░██░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░█████░░▄▀▄▀▄▀░░█████",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░░░░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█████░░░░░░█████░░░░░░░░░░░░░░█░░░░░░░░██░░░░░░░░█",
"██████████████████████████████████████████████████",
}
dashboard.section.header.opts = {
position = 'center',
hl = 'Comment',
}
require('alpha').setup(require('alpha.themes.dashboard').config)
dashboard.section.buttons.val = {
dashboard.button('SPC f f', ' Find File', '<CMD>Telescope find_files<CR>'),
dashboard.button('SPC f r', ' Recent Files', '<CMD>Telescope oldfiles<CR>'),
dashboard.button('SPC f t', ' Find in Files', '<CMD>Telescope live_grep<CR>'),
}
end,
dependencies = { 'nvim-tree/nvim-web-devicons' },
}