Skip to content

Commit

Permalink
add nice ascii art to dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
EphraimSiegfried committed May 8, 2024
1 parent ce5cdc1 commit f16e5bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 14 deletions.
39 changes: 39 additions & 0 deletions lua/plugins/ui/alpha.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
local logo = {
[[ ,]],
[[ ,-. _,---._ __ / \]],
[[ / ) .-' `./ / \]],
[[ ( ( ,' `/ /|]],
[[ \ `-" \'\ / |]],
[[ `. , \ \ / |]],
[[ /`. ,'-`----Y |]],
[[ ( ; | ']],
[[ | ,-. ,-' | /]],
[[ | | ( | nvim | /]],
[[ ) | \ `.___________|/]],
[[ `--' `--']],
}

return {
"goolord/alpha-nvim",
priority = 900,
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")

-- Set header

dashboard.section.header.val = logo

-- Set menu
dashboard.section.buttons.val = {
dashboard.button("e", "  New file", ":ene <bar> startinsert <cr>"),
dashboard.button("f", "  Find file", ":Telescope find_files<cr>"),
dashboard.button("r", "  Recent", ":Telescope oldfiles<cr>"),
dashboard.button("s", "  Settings", ":e ~/.config/nvim | :cd %:p:h<cr>"),
dashboard.button("q", "  Quit nvim", ":qa<CR>"),
}

alpha.setup(dashboard.opts)
end,
}
14 changes: 0 additions & 14 deletions lua/plugins/ui/startup.lua

This file was deleted.

0 comments on commit f16e5bc

Please sign in to comment.