diff options
author | LostNeophyte <[email protected]> | 2023-01-25 12:39:41 +0100 |
---|---|---|
committer | LostNeophyte <[email protected]> | 2023-01-25 12:40:16 +0100 |
commit | af338cc04a7dce91268a530dbb214389c2cfaa0d (patch) | |
tree | 1945f6975b35c0d7276f3a3df3be8ec53082b03d /lua/lvim/core/alpha/dashboard.lua | |
parent | eba121cc651413d753f688162413008a6ed455e2 (diff) |
small fixes
Diffstat (limited to 'lua/lvim/core/alpha/dashboard.lua')
-rw-r--r-- | lua/lvim/core/alpha/dashboard.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lua/lvim/core/alpha/dashboard.lua b/lua/lvim/core/alpha/dashboard.lua index 65195c7c..86d0fed8 100644 --- a/lua/lvim/core/alpha/dashboard.lua +++ b/lua/lvim/core/alpha/dashboard.lua @@ -104,15 +104,18 @@ function M.get_sections() } local text = require "lvim.interface.text" - local lvim_version = require("lvim.utils.git").get_lvim_version() local footer = { type = "text", - val = text.align_center({ width = 0 }, { - "", - "lunarvim.org", - lvim_version, - }, 0.5), + val = function() + local lvim_version = require("lvim.utils.git").get_lvim_version() + return text.align_center({ width = 0 }, { + "", + "lunarvim.org", + lvim_version, + }, 0.5) + end, + opts = { position = "center", hl = "Number", |