Browse Source

✨feat: add goolord/alpha-nvim plugin

Naz 2 months ago
parent
commit
d8ad6897e5
1 changed files with 32 additions and 0 deletions
  1. 32 0
      lua/plugins/alpha.lua

+ 32 - 0
lua/plugins/alpha.lua

@@ -0,0 +1,32 @@
+return {
+	"goolord/alpha-nvim",
+	dependencies = { "nvim-tree/nvim-web-devicons" },
+	config = function()
+		local alpha = require("alpha")
+		local dashboard = require("alpha.themes.dashboard")
+
+		dashboard.section.header.val = {
+			"",
+			"",
+			"",
+			"",
+			"",
+			"",
+			"███▄▄▄▄      ▄████████  ▄██████▄   ▄█    █▄   ▄█    ▄▄▄▄███▄▄▄▄  ",
+			"███▀▀▀██▄   ███    ███ ███    ███ ███    ███ ███  ▄██▀▀▀███▀▀▀██▄",
+			"███   ███   ███    █▀  ███    ███ ███    ███ ███▌ ███   ███   ███",
+			"███   ███  ▄███▄▄▄     ███    ███ ███    ███ ███▌ ███   ███   ███",
+			"███   ███ ▀▀███▀▀▀     ███    ███ ███    ███ ███▌ ███   ███   ███",
+			"███   ███   ███    █▄  ███    ███ ███    ███ ███  ███   ███   ███",
+			"███   ███   ███    ███ ███    ███ ███    ███ ███  ███   ███   ███",
+			" ▀█   █▀    ██████████  ▀██████▀   ▀██████▀  █▀    ▀█   ███   █▀ ",
+		}
+		dashboard.section.buttons.val = {
+			dashboard.button("n", "  new", ":ene <BAR> startinsert <CR>"),
+			dashboard.button("f", "  find", ":Telescope find_files<CR>"),
+			dashboard.button("r", "  recent", ":Telescope oldfiles<CR>"),
+			dashboard.button("q", "  quit", ":qa<CR>"),
+		}
+		alpha.setup(dashboard.opts)
+	end,
+}