aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/dashboard-nvim.lua
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-03-05 22:25:17 +0100
committereric.marin <maarin.eric@gmail.com>2025-03-05 22:26:26 +0100
commit6d95f092e30737d49b650891e93de518498523a3 (patch)
tree469db0917af455a1a354123f8d5ee27a228dae38 /nvim/lua/plugins/dashboard-nvim.lua
parent4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (diff)
downloaddotfiles-6d95f092e30737d49b650891e93de518498523a3.tar.gz
dotfiles-6d95f092e30737d49b650891e93de518498523a3.zip
neorg
Diffstat (limited to 'nvim/lua/plugins/dashboard-nvim.lua')
-rw-r--r--nvim/lua/plugins/dashboard-nvim.lua83
1 files changed, 24 insertions, 59 deletions
diff --git a/nvim/lua/plugins/dashboard-nvim.lua b/nvim/lua/plugins/dashboard-nvim.lua
index 287bf21..481f0e7 100644
--- a/nvim/lua/plugins/dashboard-nvim.lua
+++ b/nvim/lua/plugins/dashboard-nvim.lua
@@ -1,5 +1,3 @@
-math.randomseed(os.time())
-
Headers = {
{
[[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ ]],
@@ -68,24 +66,6 @@ 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^ ]],
- [[ ^^ ]],
- [[ ]],
- },
- {
[[ ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ]],
[[ ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ]],
[[ ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ]],
@@ -120,23 +100,6 @@ Headers = {
[[ '---''(_/--' `-'\_) ]],
[[ ]],
},
- {
- [[ ____ ]],
- [[ /\ \ ]],
- [[ / \ \ ]],
- [[ / \ \ ]],
- [[ / \ \ ]],
- [[ / /\ \ \ ]],
- [[ / / \ \ \ ]],
- [[ / / \ \ \ ]],
- [[ / / / \ \ \ ]],
- [[ / / / \ \ \ ]],
- [[ / / /---------' \ ]],
- [[ / / /_______________\ ]],
- [[ \ / / ]],
- [[ \/_____________________/ ]],
- [[ ]],
- },
}
Quotes = {
@@ -197,6 +160,9 @@ Quotes = {
}
}
+
+math.randomseed(os.time())
+
local header = function()
return Headers[math.random(#Headers)]
end
@@ -211,33 +177,32 @@ local init = function()
{ 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
+local hyper = {
+ theme = "hyper",
+ shortcut_type = "number",
+ change_to_vcs_root = true,
+ hide = {
+ statusline = false
+ },
+ config = {
+ header = header(),
+ shortcut = {
+ { action = "ene | lua require('lualine')", desc = "New File", icon = " ", key = "n" },
+ { action = "Lazy", desc = "Plugin Manager", icon = "󰒲 ", key = "p" },
+ { action = "Oil --float", desc = "File browser", icon = " ", key = "b" },
+ { action = "Neorg index", desc = "Neorg Index", icon = "󰧮 ", key = "i" }
},
- 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
+ packages = { enable = true },
+ project = { enable = true },
+ mru = { limit = 5 },
+ footer = footer,
+ },
+}
return {
"eric-marin/dashboard-nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
lazy = false,
init = init,
- config = hyper,
+ opts = hyper
}