From c3a16f18e513ea81278bf229146ee41da3909f82 Mon Sep 17 00:00:00 2001 From: triethyl Date: Sun, 13 Jul 2025 17:17:46 -0400 Subject: working on custom neovim --- pkgs/custom-neovim/config/lua/plugins/alpha.lua | 66 ++++++------------------- 1 file changed, 15 insertions(+), 51 deletions(-) (limited to 'pkgs/custom-neovim/config/lua/plugins/alpha.lua') 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" ), --- 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" +-- 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" ), +} --- -- 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", "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", -} +-- Send config to alpha +alpha.setup(dashboard.opts) -- Set options just for the dashboard. vim.api.nvim_create_autocmd("BufEnter", { -- cgit v1.2.3