diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-12 22:56:30 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-12 22:56:30 +0100 |
commit | 474ca5896b1a7691f11056b8cf8bd6fd043886b2 (patch) | |
tree | 447b020d3af87a7da792e127704f6bb7ee1368f0 /lua/config | |
parent | d2f2c2504e6f7257b28be6b2857301e3e8f2d241 (diff) |
Add alpha
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/alpha.lua | 45 | ||||
-rw-r--r-- | lua/config/init.lua | 1 |
2 files changed, 46 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") |