From 64d4bb64b40d683e855384d83ca702b2293f0458 Mon Sep 17 00:00:00 2001 From: Mitchell Hingley Date: Thu, 3 Sep 2026 14:04:23 -0400 Subject: [PATCH] fix gitignore --- .gitignore | 5 ++-- lua/pluginsLate/alpha.lua | 56 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 lua/pluginsLate/alpha.lua diff --git a/.gitignore b/.gitignore index 9e40d48..a909b51 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -lazy-lock.json -lua/**/*.lua +#lazy-lock.json +#lua/**/*.lua +lua/ignoreConfig diff --git a/lua/pluginsLate/alpha.lua b/lua/pluginsLate/alpha.lua new file mode 100644 index 0000000..f93432d --- /dev/null +++ b/lua/pluginsLate/alpha.lua @@ -0,0 +1,56 @@ +return { + "goolord/alpha-nvim", + config = function () + local alpha = require'alpha' + --local colours = require 'material.colors' + vim.api.nvim_set_hl(0, "alphaheader", {fg = "#3661cf" }) + --vim.api.nvim_set_hl(0, "alphafooter", {fg = colours.main.darkpurple }) + local dashboard = require'alpha.themes.dashboard' + dashboard.section.header.val = { + [[ ░░░░░░░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░▒▓▒░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░░▒██▓░░░░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░▓████▓░░░░░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░▒██████▓░░░░░░░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░▓████████▒░░░░░░░░░░░░░░░░░ ]], + [[░░░░░░░░░░░░░░▒███████████▓░░░░░░░░░░░░░░░░░]], + [[░░░░░░░░░░░░░▓██████████████▒░░░░░░░░░░░░░░░]], + [[░░░░░░░░░░░░▓████████████████▓░░░░░░░░░░░░░░]], + [[░░░░░░░░░░░▓███████████████▓▓██▒░░░░░░░░░░░░]], + [[░░░░░░░░░░▒████████████████▓░▒██▒░░░░░░░░░░░]], + [[░░░░░░░░░░▒███████████████▓▒░░▓█▓░░░░░░░░░░░]], + [[ ░░░░░░░░░▒███████████████▓░░░▓█▓▒░░░░░░░░░ ]], + [[ ░░░░░░░░░░▓████████████████████▓░░░░░░░░░░ ]], + [[ ░░░░░░░░▒▓██████████████████▓░░░░░░░░░ ]], + [[ ░░░░░░░░░▓████████████████▒░░░░░░░░░ ]], + [[ ░░░░░░░░▒▓██████████▓▒░░░░░░░░ ]], + [[ ░░░░░░░░░░░░▒▒░░░░░░░░░░░░ ]], + [[ ░░░░░░░░░░░░░░░░░░ ]], + } + dashboard.section.header.opts.hl = "alphaheader" + dashboard.section.buttons.val = { + dashboard.button("f", " search file in cwd", ":FzfLua files"), + dashboard.button("g", " GIT", ":LazyGit"), + dashboard.button("-", " explore cwd", ":Oil --float"), + dashboard.button("e", " new file", ":ene startinsert "), + dashboard.button("t", " change theme", ":FzfLua colorschemes"), + dashboard.button("l", " Lazy settings", ":Lazy"), + dashboard.button("q", "󰅚 quit nvim", ":qa"), + } + local handle = io.popen('fortune') + local fortune = handle:read("*a") + handle:close() + dashboard.section.footer.val = { + [["we define the boundaries of reality;]], + [[they don't define us."]], + [[ -Teferi]] + } + dashboard.section.footer.opts.hl = "alphafooter" + dashboard.config.opts.noautocmd = true + + vim.cmd[[autocmd user alphaready echo 'ready']] + + alpha.setup(dashboard.config) + end +}