aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/dashboard-nvim.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvim/lua/plugins/dashboard-nvim.lua323
1 files changed, 323 insertions, 0 deletions
diff --git a/nvim/lua/plugins/dashboard-nvim.lua b/nvim/lua/plugins/dashboard-nvim.lua
new file mode 100644
index 0000000..06b87f9
--- /dev/null
+++ b/nvim/lua/plugins/dashboard-nvim.lua
@@ -0,0 +1,323 @@
+math.randomseed(os.time())
+
+Headers = {
+ {
+ [[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ ]],
+ [[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║ ]],
+ [[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║ ]],
+ [[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ ]],
+ [[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║ ]],
+ [[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ]],
+ [[ ]],
+ },
+ {
+ [[ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓ ]],
+ [[ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒ ]],
+ [[ ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░ ]],
+ [[ ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ ]],
+ [[ ▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒ ]],
+ [[ ░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░ ]],
+ [[ ░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ ]],
+ [[ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ ]],
+ [[ ░ ░ ░ ░ ░ ░ ░ ░ ]],
+ [[ ░ ]],
+ [[ ]],
+ },
+ {
+ [[ ██████ █████ █████ █████ ███ ]],
+ [[ ░░██████ ░░███ ░░███ ░░███ ░░░ ]],
+ [[ ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ ]],
+ [[ ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ ]],
+ [[ ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ ]],
+ [[ ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ ]],
+ [[ █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ ]],
+ [[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ]],
+ [[ ]],
+ },
+ {
+ [[ ▐ ▄ ▄▄▄ . ▌ ▐·▪ • ▌ ▄ ·. ]],
+ [[ •█▌▐█▀▄.▀· ▄█▀▄ ▪█·█▌██ ·██ ▐███▪ ]],
+ [[ ▐█▐▐▌▐▀▀▪▄▐█▌.▐▌▐█▐█•▐█·▐█ ▌▐▌▐█· ]],
+ [[ ██▐█▌▐█▄▄▌▐█▌.▐▌ ███ ▐█▌██ ██▌▐█▌ ]],
+ [[ ▀▀ █▪ ▀▀▀ ▀█▄▀▪. ▀ ▀▀▀▀▀ █▪▀▀▀ ]],
+ [[ ]],
+
+ },
+ {
+ [[ __ __ ________ ______ __ __ ______ __ __ ]],
+ [[ | \ | \ \/ \| \ | \ \ \ / \ ]],
+ [[ | ▓▓\ | ▓▓ ▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ | ▓▓\▓▓▓▓▓▓ ▓▓\ / ▓▓ ]],
+ [[ | ▓▓▓\| ▓▓ ▓▓__ | ▓▓ | ▓▓ ▓▓ | ▓▓ | ▓▓ | ▓▓▓\ / ▓▓▓ ]],
+ [[ | ▓▓▓▓\ ▓▓ ▓▓ \ | ▓▓ | ▓▓\▓▓\ / ▓▓ | ▓▓ | ▓▓▓▓\ ▓▓▓▓ ]],
+ [[ | ▓▓\▓▓ ▓▓ ▓▓▓▓▓ | ▓▓ | ▓▓ \▓▓\ ▓▓ | ▓▓ | ▓▓\▓▓ ▓▓ ▓▓ ]],
+ [[ | ▓▓ \▓▓▓▓ ▓▓_____| ▓▓__/ ▓▓ \▓▓ ▓▓ _| ▓▓_| ▓▓ \▓▓▓| ▓▓ ]],
+ [[ | ▓▓ \▓▓▓ ▓▓ \\▓▓ ▓▓ \▓▓▓ | ▓▓ \ ▓▓ \▓ | ▓▓ ]],
+ [[ \▓▓ \▓▓\▓▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓ \▓▓▓▓▓▓\▓▓ \▓▓ ]],
+ [[ ]],
+ },
+ {
+ [[ ▀███▄ ▀███▀███▀▀▀███ ▄▄█▀▀██▄ ▀████▀ ▀███▀████▀████▄ ▄███▀ ]],
+ [[ ███▄ █ ██ ▀█▄██▀ ▀██▄ ▀██ ▄█ ██ ████ ████ ]],
+ [[ █ ███ █ ██ █ ██▀ ▀██ ██▄ ▄█ ██ █ ██ ▄█ ██ ]],
+ [[ █ ▀██▄ █ ██████ ██ ██ ██▄ █▀ ██ █ █▓ █▀ ██ ]],
+ [[ █ ▀██▄▓ ██ █ ▄█ ██ ▀▓█ ▓▀ █▓ ▓ █▓▄█▀ ██ ]],
+ [[ ▓ ▓█▓ █▓ ▄███ ██▀ ▓██▄ █▓ ▓ ▀▓█▀ ██ ]],
+ [[ ▓ ▀▓▓▓▓ ▓▓ ▓ ▓██ ▓█▓ ▓▓ ▓▀ ▓▓ ▓ ▓▓▓▓▀ ▓▓ ]],
+ [[ ▓ ▓▓▓ ▓▓ ▓▓█▓▓▓ ▓▓▓ ▓▓▒▒ ▒▓ ▒ ▀▓▓▀ ▓▓ ]],
+ [[ ▒ ▒ ▒ ▒▓▓▒ ▒▒▒▓▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒▓▒ ▒▒ ▒▒▒ ▒ ▒ ▒▒▒ ]],
+ [[ ]],
+ },
+ {
+ [[ _.oo. ]],
+ [[ _.u[[/;:,. .odMMMMMM' ]],
+ [[ .o888UU[[[/;:-. .o@P^ MMM^ ]],
+ [[ oN88888UU[[[/;::-. dP^ ]],
+ [[ dNMMNN888UU[[[/;:--. .o@P^ ]],
+ [[ ,MMMMMMN888UU[[/;::-. o@^ ]],
+ [[ NNMMMNN888UU[[[/~.o@P^ ]],
+ [[ 888888888UU[[[/o@^-.. ]],
+ [[ oI8888UU[[[/o@P^:--.. ]],
+ [[ .@^ YUU[[[/o@^;::---.. ]],
+ [[ oMP ^/o@P^;:::---.. ]],
+ [[ .dMMM .o@^ ^;::---... ]],
+ [[ dMMMMMMM@^` `^^^^ ]],
+ [[ YMMMUP^ ]],
+ [[ ^^ ]],
+ [[ ]],
+ },
+ {
+ [[ ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ]],
+ [[ ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ]],
+ [[ ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ]],
+ [[ ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ]],
+ [[ ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ]],
+ [[ ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ]],
+ [[ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ]],
+ [[ ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ]],
+ [[ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ]],
+ [[ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ]],
+ [[ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ]],
+ [[ ]],
+ },
+ {
+ [[⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⣤⣤⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⡆⠀⠀⠀⢸⣿⣿⠿⠿⢿⣿⣿⣿⣿⡿⠿⠿⣿⣿⡇⠀⠀⠀⣾⣿⣿⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⢿⣿⠿⠿⠿⠿⣿⣿⣿⡏⠀⠀⠀⢹⣿⡇⠀⠀⠀⢸⣿⢱⣶⣴⣶⢹⣿⣿⡏⣶⣦⣶⡎⣿⡇⠀⠀⠀⢿⣿⠁⠀⠀⠈⣿⣿⣿⡿⠟⣋⣽⣿⣿⠇⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⠘⣿⣧⣄⣀⣴⣿⣿⣿⣷⣄⣀⣠⣾⣟⠀⠀⠀⠀⠈⣿⣦⣙⣛⣡⣾⡿⢿⣷⣌⣛⣋⣴⣿⠁⠀⠀⠀⠘⣿⣦⣄⣀⣴⣿⣿⣿⣿⣶⣶⣤⣿⡟⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣏⣼⣌⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣰⣆⣿⣿⣿⣿⣿⡿⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣏⣼⣌⣿⣿⣿⣿⣿⠏⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⠀⠀⠉⠉⢿⣿⣿⣿⣿⣿⣿⡏⠉⠁⠀⠀⠀⠀⠀⠀⠀⠉⠉⢹⣿⣿⣿⣿⣿⣿⡏⠉⠉⠀⠀⠀⠀⠀⠀⠀⠉⠉⣿⣿⣿⣿⣿⣿⣿⡏⠉⠁⠀⠀⠀⠀⠀⠀]],
+ [[⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠁⠁⠁⠉⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠁⠉⠉⠈⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠁⠁⠁⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀]],
+ [[ ]],
+ },
+ {
+ [[ ,-. _,---._ __ / \ ]],
+ [[ / ) .-' `./ / \ ]],
+ [[ ( ( ,' `/ /| ]],
+ [[ \ `-" \'\ / | ]],
+ [[ `. , \ \ / | ]],
+ [[ /`. ,'-`----Y | ]],
+ [[ ( ; | ' ]],
+ [[ | ,-. ,-' | / ]],
+ [[ | | ( | | / ]],
+ [[ ) | \ `.___________|/ ]],
+ [[ `--' `--' ]],
+ [[ ]],
+ },
+ {
+ [[ |\ _,,,---,,_ ]],
+ [[ ZZZzz /,`.-'`' -. ;-;;,_ ]],
+ [[ |,4- ) )-,_. ,\ ( `'-' ]],
+ [[ '---''(_/--' `-'\_) ]],
+ [[ ]],
+ },
+ {
+ [[ ____ ]],
+ [[ /\ \ ]],
+ [[ / \ \ ]],
+ [[ / \ \ ]],
+ [[ / \ \ ]],
+ [[ / /\ \ \ ]],
+ [[ / / \ \ \ ]],
+ [[ / / \ \ \ ]],
+ [[ / / / \ \ \ ]],
+ [[ / / / \ \ \ ]],
+ [[ / / /---------' \ ]],
+ [[ / / /_______________\ ]],
+ [[ \ / / ]],
+ [[ \/_____________________/ ]],
+ [[ ]],
+ },
+ {
+ [[ ____ ]],
+ [[ ,-~~~~' '~~~~-, ]],
+ [[ ,' '', ]],
+ [[ ( Y ]],
+ [[ { I ]],
+ [[ { - `. ]],
+ [[ | ', ) ]],
+ [[ | | ,..__ __. Y ]],
+ [[ | .,_./ Y ' / ^Y J )| ]],
+ [[ \ |' / | | || ]],
+ [[ \ L_/ . _ (_,.'( ]],
+ [[ \, , ^^""' / | ) ]],
+ [[ \_ \ /,L] / ]],
+ [[ '-_`-, ` ` ./` ]],
+ [[ `-(_ ) ]],
+ [[ ^^\..___,.--` ]],
+ [[ ]],
+ },
+ {
+ [[ ____ ]],
+ [[ _.-'78o `"`--._ ]],
+ [[ ,o888o. .o888o, ''-. ]],
+ [[ ,88888P `78888P..______.] ]],
+ [[ /_..__..----"" __.' ]],
+ [[ `-._ /""| _..-'' ]],
+ [[ "`-----\ `\ ]],
+ [[ | ;.-""--.. ]],
+ [[ | ,8o. o88. `. ]],
+ [[ `;888P `788P : ]],
+ [[ .o""-.|`-._ ./ ]],
+ [[ J88 _.-/ ";"-P----' ]],
+ [[ `--'\`| / / ]],
+ [[ | / | | ]],
+ [[ \| / | ]],
+ [[ `-----`---' ]],
+ [[ ]],
+ },
+ {
+ [[ ,. ]],
+ [[ J;`. ]],
+ [[ iyi.`. ]],
+ [[ j?7;. : ]],
+ [[ fclu:.` : ]],
+ [[ dE2Xvi;. `. ]],
+ [[ JGL56bhx;.'; ]],
+ [[ 4KPY^f:l"`-; ]],
+ [[ """l:;-"" ]],
+ [[ `; \ ]],
+ [[ .' ; ]],
+ [[ /'.' ]],
+ [[ f .' ]],
+ [[ `. \ ]],
+ [[ `-' ]],
+ [[ ]],
+ },
+ {
+ [[ ___..._ ]],
+ [[ _,--' "`-. ]],
+ [[ ,'. . \ ]],
+ [[ ,/:. . . .' ]],
+ [[ |;.. . _..--' ]],
+ [[ `--:...-,-'""\ ]],
+ [[ |:. `. ]],
+ [[ l;. l ]],
+ [[ `|:. | ]],
+ [[ |:. `., ]],
+ [[ .l;. j, , ]],
+ [[ `. \`;:. //,/ ]],
+ [[ .\\)`;,|\'/( ]],
+ [[ ` ` ` ]],
+ [[ ]],
+ }
+}
+
+Quotes = {
+ {
+ "",
+ "I don't care that they stole my idea... I care that they don't have any of their own",
+ "~ Nikola Tesla",
+ },
+ {
+ "",
+ "Make everything as simple as possible, but not simpler.",
+ "~ Albert Einstein",
+ },
+ {
+ "",
+ "Code never lies, comments sometimes do.",
+ "~ Ron Jeffries",
+ },
+ {
+ "",
+ "Good code is its own best documentation.",
+ "~ Steve McConnell",
+ },
+ {
+ "",
+ "I do not fear computers. I fear the lack of them.",
+ "~ Isaac Asimov",
+ },
+ {
+ "",
+ "If a machine is expected to be infallible, it cannot also be intelligent.",
+ "~ Alan Turing",
+ },
+ {
+ "",
+ "Mathematical reasoning may be regarded.",
+ "~ Alan Turing",
+ },
+ {
+ "",
+ "Anti-social behavior is a trait of intelligence in a world full of conformists.",
+ "~ Nikola Tesla",
+ },
+ {
+ "",
+ "We are very, very small, but we are profoundly capable of very, very big things.",
+ "~ Stephen Hawking",
+ },
+ {
+ "",
+ "Quiet people have the loudest minds.",
+ "~ Stephen Hawking",
+ }
+}
+
+local header = function()
+ return Headers[math.random(#Headers)]
+end
+
+local footer = function()
+ return Quotes[math.random(#Quotes)]
+end
+
+local init = function()
+ local keymap = vim.keymap
+ keymap.set("n", "<Space>d", ":Dashboard<Enter>",
+ { noremap = true, silent = true, desc = "Dashboard" }) -- Dashboard
+end
+
+local hyper = function()
+ require("dashboard").setup {
+ theme = "hyper",
+ shortcut_type = "number",
+ change_to_vcs_root = true,
+ hide = {
+ statusline = false
+ },
+ config = {
+ header = header(),
+ shortcut = {
+ { action = "ene | lua require('lualine')", desc = "New", icon = " ", key = "n" },
+ { action = "Lazy", desc = "Lazy", icon = "󰒲 ", key = "l" },
+ { action = "Oil --float", desc = "File browser", icon = " ", key = "o" },
+ },
+ packages = { enable = true },
+ project = { enable = true },
+ mru = { limit = 5 },
+ footer = footer,
+ },
+ }
+end
+
+return {
+ "eric-marin/dashboard-nvim",
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ lazy = false,
+ init = init,
+ config = hyper,
+}