summaryrefslogtreecommitdiff
path: root/lua/config/alpha.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-12 22:56:30 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-12 22:56:30 +0100
commit474ca5896b1a7691f11056b8cf8bd6fd043886b2 (patch)
tree447b020d3af87a7da792e127704f6bb7ee1368f0 /lua/config/alpha.lua
parentd2f2c2504e6f7257b28be6b2857301e3e8f2d241 (diff)
Add alpha
Diffstat (limited to 'lua/config/alpha.lua')
-rw-r--r--lua/config/alpha.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/lua/config/alpha.lua b/lua/config/alpha.lua
new file mode 100644
index 0000000..efbd6f6
--- /dev/null
+++ b/lua/config/alpha.lua
@@ -0,0 +1,45 @@
+-- A customizable greeter.
+
+local status_ok, alpha = pcall(require, "alpha")
+if not status_ok then
+ return
+end
+
+local dashboard = require("alpha.themes.dashboard")
+dashboard.section.header.val = {
+ [[ ##############..... ############## ]],
+ [[ ##############......############## ]],
+ [[ ##########..........########## ]],
+ [[ ##########........########## ]],
+ [[ ##########.......########## ]],
+ [[ ##########.....##########.. ]],
+ [[ ##########....##########..... ]],
+ [[ ..##########..##########......... ]],
+ [[ ....##########.#########............. ]],
+ [[ ..################JJJ............ ]],
+ [[ ################............. ]],
+ [[ ##############.JJJ.JJJJJJJJJJ ]],
+ [[ ############...JJ...JJ..JJ JJ ]],
+ [[ ##########....JJ...JJ..JJ JJ ]],
+ [[ ########......JJJ..JJJ JJJ JJJ ]],
+ [[ ###### ......... ]],
+ [[ ..... ]],
+ [[ . ]],
+}
+dashboard.section.buttons.val = {
+ dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
+ dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
+ dashboard.button("p", " Find project", ":Telescope projects <CR>"),
+ dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
+ dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
+ dashboard.button("c", " Configuration", ":e ~/.config/nvim/init.lua <CR>"),
+ dashboard.button("q", " Quit Neovim", ":qa<CR>"),
+}
+
+dashboard.section.footer.opts.hl = "Type"
+dashboard.section.header.opts.hl = "Include"
+dashboard.section.buttons.opts.hl = "Keyword"
+
+dashboard.opts.opts.noautocmd = true
+-- vim.cmd([[autocmd User AlphaReady echo 'ready']])
+alpha.setup(dashboard.opts)