Modifing center and footer
This commit is contained in:
@@ -3,6 +3,14 @@ if not staus then
|
|||||||
return
|
return
|
||||||
end
|
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({
|
dashboard.setup({
|
||||||
theme = "doom",
|
theme = "doom",
|
||||||
config = {
|
config = {
|
||||||
@@ -27,7 +35,6 @@ dashboard.setup({
|
|||||||
[[ ==' _-' \/ `== ]],
|
[[ ==' _-' \/ `== ]],
|
||||||
[[ \ _-' `-_ / ]],
|
[[ \ _-' `-_ / ]],
|
||||||
[[ `'' ``' ]],
|
[[ `'' ``' ]],
|
||||||
[[ ]],
|
|
||||||
[[ [ TIP: To exit Neovim, just power off your computer. ] ]],
|
[[ [ TIP: To exit Neovim, just power off your computer. ] ]],
|
||||||
[[ ]],
|
[[ ]],
|
||||||
},
|
},
|
||||||
@@ -37,7 +44,7 @@ dashboard.setup({
|
|||||||
icon_hl = 'main',
|
icon_hl = 'main',
|
||||||
desc = 'Find files',
|
desc = 'Find files',
|
||||||
desc_hl = 'main',
|
desc_hl = 'main',
|
||||||
key = 'SPC f f',
|
key = 'f',
|
||||||
key_hl = 'main',
|
key_hl = 'main',
|
||||||
action = 'Telescope find_files',
|
action = 'Telescope find_files',
|
||||||
},
|
},
|
||||||
@@ -46,13 +53,31 @@ dashboard.setup({
|
|||||||
icon_hl = 'main',
|
icon_hl = 'main',
|
||||||
desc = 'Select project',
|
desc = 'Select project',
|
||||||
desc_hl = 'main',
|
desc_hl = 'main',
|
||||||
key = 'SPC f p',
|
key = 'p',
|
||||||
key_hl = 'main',
|
key_hl = 'main',
|
||||||
action = 'Telescope project',
|
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 = {
|
footer = {
|
||||||
"The one true text editor."
|
" " .. version .. " " .. plugins_count .. ' plugins ' .. date .. ' ' .. time,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user