From a8dbd07725a87af6c173bb5382ce37629515e3a3 Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 11 Jul 2023 22:36:39 +0200 Subject: [PATCH] Modifing center and footer --- after/plugin/dashboard.lua | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/after/plugin/dashboard.lua b/after/plugin/dashboard.lua index 278f275..abab258 100644 --- a/after/plugin/dashboard.lua +++ b/after/plugin/dashboard.lua @@ -3,6 +3,14 @@ if not staus then return end +local version = vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch +local dataPath = vim.fn.stdpath("data") +local startDir = vim.fn.globpath(dataPath .. "\\site\\pack\\packer\\start", "*", 0, 1) +local optDir = vim.fn.globpath(dataPath .. "\\site\\pack\\packer\\opt", "*", 0, 1) +local plugins_count = vim.fn.len(startDir) + vim.fn.len(optDir) +local time = vim.fn.strftime("%H:%M:%S") +local date = vim.fn.strftime("%d.%m.%Y") + dashboard.setup({ theme = "doom", config = { @@ -27,7 +35,6 @@ dashboard.setup({ [[ ==' _-' \/ `== ]], [[ \ _-' `-_ / ]], [[ `'' ``' ]], - [[ ]], [[ [ TIP: To exit Neovim, just power off your computer. ] ]], [[ ]], }, @@ -37,7 +44,7 @@ dashboard.setup({ icon_hl = 'main', desc = 'Find files', desc_hl = 'main', - key = 'SPC f f', + key = 'f', key_hl = 'main', action = 'Telescope find_files', }, @@ -46,13 +53,31 @@ dashboard.setup({ icon_hl = 'main', desc = 'Select project', desc_hl = 'main', - key = 'SPC f p', + key = 'p', key_hl = 'main', action = 'Telescope project', }, + { + icon = ' ', + icon_hl = 'main', + desc = 'Neorg', + desc_hl = 'main', + key = 'n', + key_hl = 'main', + action = 'Neorg workspace main', + }, + { + icon = '󰚰 ', + icon_hl = 'main', + desc = 'Packer sync', + desc_hl = 'main', + key = 'P', + key_hl = 'main', + action = 'PackerSync', + }, }, footer = { - "The one true text editor." + " " .. version .. " " .. plugins_count .. ' plugins 󰃭 ' .. date .. '  ' .. time, } } })