feat(nvim): add vim version to dashboard

This commit is contained in:
Price Hiller 2023-04-11 14:11:33 -05:00
parent 4a6a58c5a2
commit 12c7244e76
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -33,6 +33,15 @@ local header = {
opts = { position = "center", hl = "@boolean" },
}
local vim_version = {
type = "text",
val = function ()
local version = vim.version()
return ('─────── v%s.%s.%s ───────'):format(version.major, version.minor, version.patch)
end,
opts = { position = "center", hl = "@boolean"}
}
local plugins_loaded = {
type = "text",
val = function()
@ -129,6 +138,7 @@ local opts = {
layout = {
padding(4),
header,
vim_version,
padding(4),
datetime,
padding(1),