From 12c7244e760e1c0311fa72674652d19f75159d8a Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 11 Apr 2023 14:11:33 -0500 Subject: [PATCH] feat(nvim): add vim version to dashboard --- .../primary/config/lua/plugins/configs/alpha.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua b/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua index cd5cf75d..b5e11439 100644 --- a/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/configs/alpha.lua @@ -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),