summaryrefslogtreecommitdiff
path: root/lua/lvim/core/alpha/dashboard.lua
diff options
context:
space:
mode:
authorLostNeophyte <[email protected]>2023-01-25 12:39:41 +0100
committerLostNeophyte <[email protected]>2023-01-25 12:40:16 +0100
commitaf338cc04a7dce91268a530dbb214389c2cfaa0d (patch)
tree1945f6975b35c0d7276f3a3df3be8ec53082b03d /lua/lvim/core/alpha/dashboard.lua
parenteba121cc651413d753f688162413008a6ed455e2 (diff)
small fixes
Diffstat (limited to 'lua/lvim/core/alpha/dashboard.lua')
-rw-r--r--lua/lvim/core/alpha/dashboard.lua15
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",