feat(nvim): add vim version to dashboard
This commit is contained in:
parent
4a6a58c5a2
commit
12c7244e76
@ -33,6 +33,15 @@ local header = {
|
|||||||
opts = { position = "center", hl = "@boolean" },
|
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 = {
|
local plugins_loaded = {
|
||||||
type = "text",
|
type = "text",
|
||||||
val = function()
|
val = function()
|
||||||
@ -129,6 +138,7 @@ local opts = {
|
|||||||
layout = {
|
layout = {
|
||||||
padding(4),
|
padding(4),
|
||||||
header,
|
header,
|
||||||
|
vim_version,
|
||||||
padding(4),
|
padding(4),
|
||||||
datetime,
|
datetime,
|
||||||
padding(1),
|
padding(1),
|
||||||
|
Loading…
Reference in New Issue
Block a user