local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") -- -- 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" ), -- dashboard.button( "r", " > Find recent file", ":Telescope oldfiles" ), -- dashboard.button( "s", " > Load session", ":Telescope persisted" ), -- dashboard.button( "l", " > Load last session", ":SessionLoadLast" ), -- dashboard.button( "q", " > Quit", ":qa" ), -- } -- -- Center components. -- dashboard.section.header.opts.position = "center" -- dashboard.section.footer.opts.position = "center" -- -- Send config to alpha -- alpha.setup(dashboard.opts) require("alpha").setup { dashboard = { config = {}, opts = { autostart = true }, section = { buttons = { entries = { { "f", "󰈞 Find File", "Telescope find_files" }, { "n", " New File", "ene!" }, { "p", " Projects ", "Telescope projects" }, { "r", " Recent files", ":Telescope oldfiles " }, { "t", "󰊄 Find Text", "Telescope live_grep" }, { "c", " Configuration", "edit /home/lucas/.config/lvim/config.lua " }, { "q", "󰅖 Quit", "quit" } }, 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", } -- Set options just for the dashboard. vim.api.nvim_create_autocmd("BufEnter", { pattern = "alpha", callback = function() vim.opt_local.foldenable = false -- disable folding vim.opt_local.relativenumber = false vim.opt_local.number = false end, })