Update .config/nvim/lua/plugins/alpha.lua

This commit is contained in:
Anthony Rodriguez 2024-08-14 20:05:47 +02:00
parent f672ae8e2c
commit 0c75bc624c

View file

@ -1,5 +1,8 @@
return { return {
'goolord/alpha-nvim', 'goolord/alpha-nvim',
dependencies = {
"nvim-telescope/telescope.nvim"
},
config = function() config = function()
local alpha = require 'alpha' local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard' local dashboard = require 'alpha.themes.dashboard'
@ -31,6 +34,11 @@ return {
dashboard.section.header.opts.hl = 'DashboardHeader' dashboard.section.header.opts.hl = 'DashboardHeader'
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", "󰈞 Find file", ":Telescope find_files <CR>"),
dashboard.button("p", " Open project", ":Telescope projects<CR>"),
}
alpha.setup(dashboard.opts) alpha.setup(dashboard.opts)
end end
}; };