From 405c50fe980449290fa11c0c3b813954eacf4c4f Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 8 Jul 2025 16:52:49 -0400 Subject: working on custom nvim Former-commit-id: 7d898c7680f9611b803438b88026d3d126672437 --- pkgs/custom-neovim/config/lua/plugins/alpha.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pkgs/custom-neovim/config/lua/plugins/alpha.lua (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 new file mode 100644 index 0000000..ef39612 --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/alpha.lua @@ -0,0 +1,21 @@ +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", ""), + dashboard.button( "q", " > Quit", ":qa"), +} + +-- Send config to alpha +alpha.setup(dashboard.opts) + +-- Disable folding on alpha buffer +vim.cmd([[ + autocmd FileType alpha setlocal nofoldenable +]]) -- cgit v1.2.3