refactor: simplify data variable usage across multiple modules

This commit is contained in:
2024-08-24 16:32:29 -04:00
parent ac9397a703
commit c02ba52ff1
8 changed files with 59 additions and 54 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Dashboard │
-- ╰─────────────────────────────────────────────────────────╯
local data = require("data")
return {
-- Dashboard
enabled = false,
@@ -62,7 +64,7 @@ return {
file_height = logo_dimensions.height,
},
config = {
center = require("data.dash").choices,
center = data.dash.choices,
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)