Merge branch 'master' of git.beefslab.com:michael/nvim-config
This commit is contained in:
commit
2f04ee5bd5
24
lua/configs/alpha.lua
Normal file
24
lua/configs/alpha.lua
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.config()
|
||||||
|
local status_ok, alpha = pcall(require, "alpha")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local dashboard = require'alpha.themes.dashboard'
|
||||||
|
|
||||||
|
dashboard.section.header.val = { "NeoVim", }
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("f", "Find File", ":Telescope find_files<cr>"),
|
||||||
|
dashboard.button("w", "Find Word", ":Telescope live_grep<cr>"),
|
||||||
|
dashboard.button("o", "Recent Files", ":Telescope oldfiles<cr>"),
|
||||||
|
dashboard.button("e", "Open Tree", ":NvimTreeToggle<cr>"),
|
||||||
|
dashboard.button("q", "Quit", ":qa<cr>"),
|
||||||
|
}
|
||||||
|
|
||||||
|
alpha.setup(dashboard.config)
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
@ -148,6 +148,13 @@ packer.startup {
|
|||||||
-- Quality of Life
|
-- Quality of Life
|
||||||
--
|
--
|
||||||
|
|
||||||
|
-- Dashboard
|
||||||
|
use {
|
||||||
|
'goolord/alpha-nvim',
|
||||||
|
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||||
|
config = function() require'configs.alpha'.config() end
|
||||||
|
}
|
||||||
|
|
||||||
-- Autopairs
|
-- Autopairs
|
||||||
use { 'windwp/nvim-autopairs', config = function() require'configs.autopairs'.config() end }
|
use { 'windwp/nvim-autopairs', config = function() require'configs.autopairs'.config() end }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user