summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/alpha.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/alpha.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/alpha.lua66
1 files changed, 15 insertions, 51 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/alpha.lua b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
index f377b0d..32130f8 100644
--- a/pkgs/custom-neovim/config/lua/plugins/alpha.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
@@ -1,60 +1,24 @@
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
--- -- Set header
--- dashboard.section.header.val = Art.misc.hydra
+-- Set header
+dashboard.section.header.val = Art.misc.hydra
--- -- Set menu
--- dashboard.section.buttons.val = {
--- dashboard.button( "f", " > Find file", ":cd $HOME | Telescope find_files<CR>" ),
--- dashboard.button( "r", " > Find recent file", ":Telescope oldfiles<CR>" ),
--- dashboard.button( "s", " > Load session", ":Telescope persisted<cr>" ),
--- dashboard.button( "l", " > Load last session", ":SessionLoadLast<cr>" ),
--- dashboard.button( "q", " > Quit", ":qa<CR>" ),
--- }
-
--- -- Center components.
--- dashboard.section.header.opts.position = "center"
--- dashboard.section.footer.opts.position = "center"
+-- Set menu
+dashboard.section.buttons.val = {
+ dashboard.button( "f", " > Find file", ":cd $HOME | Telescope find_files<CR>" ),
+ dashboard.button( "r", " > Find recent file", ":Telescope oldfiles<CR>" ),
+ dashboard.button( "s", " > Load session", ":Telescope persisted<cr>" ),
+ dashboard.button( "l", " > Load last session", ":SessionLoadLast<cr>" ),
+ dashboard.button( "q", " > Quit", ":qa<CR>" ),
+}
--- -- Send config to alpha
--- alpha.setup(dashboard.opts)
+-- Center components.
+dashboard.section.header.opts.position = "center"
+dashboard.section.footer.opts.position = "center"
-require("alpha").setup {
- dashboard = {
- config = {},
- opts = {
- autostart = true
- },
- section = {
- buttons = {
- entries = { { "f", "󰈞 Find File", "<CMD>Telescope find_files<CR>" }, { "n", " New File", "<CMD>ene!<CR>" }, { "p", " Projects ", "<CMD>Telescope projects<CR>" }, { "r", " Recent files",
-":Telescope oldfiles <CR>" }, { "t", "󰊄 Find Text", "<CMD>Telescope live_grep<CR>" }, { "c", " Configuration", "<CMD>edit /home/lucas/.config/lvim/config.lua <CR>" }, { "q", "󰅖 Quit", "<CMD>quit<CR>"
-} },
- opts = {
- hl_shortcut = "Include",
- spacing = 1
- }
- },
- footer = {
- opts = {
- hl = "Number",
- position = "center"
- },
- type = "text",
- val = { " ", " lunarvim.org", "release-1.4/neovim-0.9-d15c8d7" }
- },
- header = {
- opts = {
- hl = "Label",
- position = "center"
- },
- type = "text",
- }
- }
- },
- mode = "dashboard",
-}
+-- Send config to alpha
+alpha.setup(dashboard.opts)
-- Set options just for the dashboard.
vim.api.nvim_create_autocmd("BufEnter", {