feat: add additional configuration options to dashboard settings
This commit is contained in:
@@ -6,8 +6,12 @@
|
||||
return { -- Alpha
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
enabled = true,
|
||||
opts = require("data").dash.alpha.opts,
|
||||
enabled = require("data.func").check_global_var(
|
||||
"dashboard",
|
||||
"alpha",
|
||||
"alpha"
|
||||
),
|
||||
opts = require("data.dash").alpha.opts,
|
||||
config = function(_, dashboard)
|
||||
-- close Lazy and re-open when the dashboard is ready
|
||||
if vim.o.filetype == "lazy" then
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Dashboard │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
local data = require("data")
|
||||
|
||||
return { --
|
||||
-- Dashboard
|
||||
@@ -65,7 +64,7 @@ return { --
|
||||
file_height = logo_dimensions.height,
|
||||
},
|
||||
config = {
|
||||
center = data.dash.dashboard_nvim.choices,
|
||||
center = require("data.dash").dashboard_nvim.choices,
|
||||
footer = function()
|
||||
local stats = require("lazy").stats()
|
||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||
@@ -111,5 +110,9 @@ return { --
|
||||
|
||||
return opts
|
||||
end,
|
||||
enabled = false,
|
||||
enabled = require("data.func").check_global_var(
|
||||
"dashboard",
|
||||
"nvim-dashboard",
|
||||
"alpha"
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user