From 9ba489c8c342a102f01a04aea3190de9bccd2ee6 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Thu, 21 Nov 2024 14:35:43 -0500 Subject: [PATCH] change session search to use Telescope session-lens --- .config/nvim/lua/plugins/alpha.lua | 64 +++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua index 8058b17..6e290bd 100644 --- a/.config/nvim/lua/plugins/alpha.lua +++ b/.config/nvim/lua/plugins/alpha.lua @@ -1,38 +1,38 @@ return { - "goolord/alpha-nvim", - event = "VimEnter", + "goolord/alpha-nvim", + event = "VimEnter", - config = function() - local alpha = require("alpha") - local dashboard = require("alpha.themes.dashboard") + config = function() + local alpha = require("alpha") + local dashboard = require("alpha.themes.dashboard") - dashboard.section.header.val = { - " @@@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ ", - "@@@@@@@@ @@@@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@@ ", - "!@@ @@! @@@@ @@! @@@ @@! @@! @@! @@@ @@! @@! @@@ @@! @@! @@@ ", - "!@! !@! @!@!@ !@! @!@ !@! !@! !@! @!@ !@! !@! @!@ !@! !@! @!@ ", - "!@! @!@ @! !@! @!@ !@! @!!!:! @!!!:! @!@!@!@! @!! @!@!@!@! @!!!:! @!@!!@! ", - "!!! !@!!! !!! !@! !!! !!!!!: !!!!!: !!!@!!!! !!! !!!@!!!! !!!!!: !!@!@! ", - ":!! !!:! !!! !!: !!! !!: !!: !!: !!! !!: !!: !!! !!: !!: :!! ", - ":!: :!: !:! :!: !:! :!: :!: :!: !:! :!: :!: !:! :!: :!: !:! ", - " ::: ::: ::::::: :: :::: :: :: :::: :: :: ::: :: :: ::: :: :::: :: ::: ", - " :: :: : : : : : :: : : : :: :: : : : : : : : : : :: :: : : : ", - " ", - } + dashboard.section.header.val = { + " @@@@@@@ @@@@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ ", + "@@@@@@@@ @@@@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@@ ", + "!@@ @@! @@@@ @@! @@@ @@! @@! @@! @@@ @@! @@! @@@ @@! @@! @@@ ", + "!@! !@! @!@!@ !@! @!@ !@! !@! !@! @!@ !@! !@! @!@ !@! !@! @!@ ", + "!@! @!@ @! !@! @!@ !@! @!!!:! @!!!:! @!@!@!@! @!! @!@!@!@! @!!!:! @!@!!@! ", + "!!! !@!!! !!! !@! !!! !!!!!: !!!!!: !!!@!!!! !!! !!!@!!!! !!!!!: !!@!@! ", + ":!! !!:! !!! !!: !!! !!: !!: !!: !!! !!: !!: !!! !!: !!: :!! ", + ":!: :!: !:! :!: !:! :!: :!: :!: !:! :!: :!: !:! :!: :!: !:! ", + " ::: ::: ::::::: :: :::: :: :: :::: :: :: ::: :: :: ::: :: :::: :: ::: ", + " :: :: : : : : : :: : : : :: :: : : : : : : : : : :: :: : : : ", + " ", + } - dashboard.section.buttons.val = { - 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"), - } + dashboard.section.buttons.val = { + 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", "Telescope session-lens"), + dashboard.button("q", " > Quit NVIM", "qa"), + } - alpha.setup(dashboard.opts) + alpha.setup(dashboard.opts) - vim.cmd([[autocmd FileType alpha setlocal nofoldenable]]) - end, -} \ No newline at end of file + vim.cmd([[autocmd FileType alpha setlocal nofoldenable]]) + end, +}