Update .config/nvim/lua/plugins/alpha.lua
This commit is contained in:
parent
f672ae8e2c
commit
0c75bc624c
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue