diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua index 1079459..8058b17 100644 --- a/.config/nvim/lua/plugins/alpha.lua +++ b/.config/nvim/lua/plugins/alpha.lua @@ -1,11 +1,11 @@ return { "goolord/alpha-nvim", event = "VimEnter", - config = function() - local alpha = require "alpha" - local dashboard = require "alpha.themes.dashboard" - -- Set header + config = function() + local alpha = require("alpha") + local dashboard = require("alpha.themes.dashboard") + dashboard.section.header.val = { " @@@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ ", "@@@@@@@@ @@@@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@@ ", @@ -20,19 +20,19 @@ return { " ", } - -- Set menu dashboard.section.buttons.val = { - dashboard.button("e", " > New File", "ene"), - dashboard.button("SPC ee", " > Toggle file explorer", "NvimTreeToggle"), - dashboard.button("SPC ff", "󰱼 > Find File", "Telescope find_files"), - dashboard.button("SPC fs", " > Find Word", "Telescope live_grep"), - dashboard.button("SPC wl", "󰁯 > Restore a Previous Session", "SessionSearch"), - dashboard.button("q", " > Quit NVIM", "qa"), + dashboard.button("n", " > New File", "ene"), + dashboard.button("e", " > Toggle file explorer", "NvimTreeToggle"), + dashboard.button("o", "󰙰 > Recent files", "Telescope oldfiles"), + dashboard.button("f", "󰱼 > Find File", "Telescope find_files"), + dashboard.button("s", " > Find Word", "Telescope live_grep"), + dashboard.button("r", "󰑓 > Open last session", "SessionRestore"), + dashboard.button("R", "󰁯 > Restore a Previous Session", "SessionSearch"), + dashboard.button("q", " > Quit NVIM", "qa"), } alpha.setup(dashboard.opts) - -- Disable folding on alpha buffer - vim.cmd [[autocmd FileType alpha setlocal nofoldenable]] + vim.cmd([[autocmd FileType alpha setlocal nofoldenable]]) end, -} +} \ No newline at end of file