diff options
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") |