diff --git a/lua/config/alpha-nvim.lua b/lua/config/alpha-nvim.lua new file mode 100644 index 0000000..a8fd953 --- /dev/null +++ b/lua/config/alpha-nvim.lua @@ -0,0 +1,31 @@ +local alpha = require("alpha") +local dashboard = require("alpha.themes.dashboard") + +-- Set header +dashboard.section.header.val = { + " ", + " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", + " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", + " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", + " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", + " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", + " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ", + " ", +} + +-- Set menu +dashboard.section.buttons.val = { + dashboard.button( "Leader f f", " > Find file", ":Leaderf file --popup"), + dashboard.button( "Leader f r", " > Recent files" , ":Leaderf mru --popup"), + dashboard.button( "Leader f g", " > Project grep" , ":Leaderf rg --popup"), + dashboard.button( "e", " > New file" , ":enew "), + dashboard.button( "q", " > Quit NVIM", ":qa"), +} + +local fortune = require("alpha.fortune") +dashboard.section.footer.val = fortune() + +alpha.setup(dashboard.opts) + +-- Send config to alpha +alpha.setup(dashboard.opts) diff --git a/lua/plugins.lua b/lua/plugins.lua index 60c0ab4..bd47db2 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -129,6 +129,7 @@ require("packer").startup({ use({ "akinsho/bufferline.nvim", event = "VimEnter", config = [[require('config.bufferline')]] }) + use { 'goolord/alpha-nvim', config = [[require('config.alpha-nvim')]] } -- fancy start screen use({ "lukas-reineke/indent-blankline.nvim", event = "VimEnter", config = [[require('config.indent-blankline')]] })