summaryrefslogtreecommitdiff
path: root/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
parentd2f2c2504e6f7257b28be6b2857301e3e8f2d241 (diff)
Add alpha
Diffstat (limited to 'lua')
-rw-r--r--lua/config/alpha.lua45
-rw-r--r--lua/config/init.lua1
-rw-r--r--lua/plugins.lua1
3 files changed, 47 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)
diff --git a/lua/config/init.lua b/lua/config/init.lua
index 6f08ad3..ea3ff9f 100644
--- a/lua/config/init.lua
+++ b/lua/config/init.lua
@@ -13,3 +13,4 @@ require("config.bufferline")
require("config.lualine")
require("config.project")
require("config.impatient")
+require("config.alpha")
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 46bfd5d..0a58c09 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -34,4 +34,5 @@ return {
},
{ "ahmedkhalf/project.nvim" },
{ "lewis6991/impatient.nvim" },
+ { "goolord/alpha-nvim" },
}