From 54bebc5e7efda92e636e25c77114b192d7c90546 Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 17 Feb 2023 23:47:22 +0200 Subject: Improved looks and functionality --- lua/plugins/dashboard.lua | 66 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua index 8cc31df..7eb4814 100644 --- a/lua/plugins/dashboard.lua +++ b/lua/plugins/dashboard.lua @@ -1,4 +1,64 @@ -require('dashboard').setup { - -- config -} +local db = require("dashboard") +--vim.api.nvim_create_autocmd("VimEnter", { +-- callback = function() +-- -- disable line numbers +-- vim.opt_local.number = false +-- vim.opt_local.relativenumber = false +-- -- always start in insert mode +-- end, +--}) +db.setup({ + theme = "hyper", + config = { + header = { + [[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]], + [[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]], + [[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]], + [[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║]], + [[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║]], + [[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝]], + }, + disable_move = true, + shortcut = { + { desc = " Plugins", group = "@property", action = "PackerStatus", key = "p" }, + { + desc = " Files", + group = "Label", + action = "Telescope find_files", + key = "f", + }, + { + desc = " Text", + group = "DiagnosticHint", + action = "Telescope live_grep", + key = "t", + }, + { + desc = " Scheme", + group = "Number", + action = "Telescope colorscheme", + key = "s", + }, + }, + }, + hide = { + statusline = false, + tabline = false, + winbar = false, + }, + -- preview = { +-- command, -- preview command +-- file_path, -- preview file path +-- file_height, -- preview file height +-- file_width, -- preview file width +-- }, +-- footer = {} --your footer +}) +--vim.cmd([[ +-- autocmd FileType dashboard :highlight DashboardHeader guifg='#b2b2b2' +-- autocmd FileType dashboard :highlight DashboardCenter guifg='#5f8700' +-- autocmd FileType dashboard :highlight DashboardCenterIcon guifg='#0087af' +-- autocmd FileType dashboard :highlight DashboardShortCut guifg='#ffd7ff' +-- autocmd FileType dashboard :highlight DashboardFooter guifg='#878787' +--]]) -- cgit v1.2.3