Modifing center and footer

This commit is contained in:
2023-07-11 22:36:39 +02:00
parent 47750317d2
commit a8dbd07725

View File

@@ -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,
}
}
})