summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/alpha.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/alpha.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/alpha.lua21
1 files changed, 21 insertions, 0 deletions
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<CR>"),
+ dashboard.button( "r", " > Find recent file", ":Telescope oldfiles<CR>"),
+ dashboard.button( "s", "Load session", ""),
+ dashboard.button( "q", " > Quit", ":qa<CR>"),
+}
+
+-- Send config to alpha
+alpha.setup(dashboard.opts)
+
+-- Disable folding on alpha buffer
+vim.cmd([[
+ autocmd FileType alpha setlocal nofoldenable
+]])