From af37decd58db483b9085065b946b174ea5cfa390 Mon Sep 17 00:00:00 2001 From: Sakamoto Date: Sun, 14 Jul 2024 18:39:18 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20added=20dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/configs/dashboard.lua | 47 +++++++++++++++++++++++++++++++++++++++ lua/plugins/init.lua | 4 +--- 2 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 lua/configs/dashboard.lua diff --git a/lua/configs/dashboard.lua b/lua/configs/dashboard.lua new file mode 100644 index 0000000..5fa9955 --- /dev/null +++ b/lua/configs/dashboard.lua @@ -0,0 +1,47 @@ +local header = { + [[]], + [[]], + [[]], + [[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]], + [[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]], + [[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]], + [[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║]], + [[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║]], + [[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝]], + [[]], + [[]], + [[]], +} + +local footer = { + [[]], + [[]], + 'Don\'t know how to exit? Refer to the link below.', + 'https://stackoverflow.com/questions/11828270/how-do-i-exit-vim', +} + +local options = { + theme = 'hyper', + disable_move = false, + shortcut_type = 'letter', + shuffle_letter = true, + change_to_vcs_root = false, + config = { + header = header, + shortcut = { + { + desc = "😎 Skill Issue.", + }, + }, + footer = footer, + }, + hide = { + statusline = true, + tabline = true, + winbar = true, + }, + preview = { + + }, +} +require("dashboard").setup(options) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 373f42d..d5b18f2 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -103,9 +103,7 @@ return { 'nvimdev/dashboard-nvim', event = 'VimEnter', config = function() - require('dashboard').setup { - -- config - } + require "configs.dashboard" end, dependencies = { {'nvim-tree/nvim-web-devicons'}} },