feat: add additional configuration options to dashboard settings
This commit is contained in:
+2
-2
@@ -49,7 +49,7 @@ return { -- cmp
|
||||
end)
|
||||
|
||||
local border_opts = {
|
||||
border = "rounded",
|
||||
border = vim.g.completion_borders or "rounded",
|
||||
}
|
||||
local window_opts = {
|
||||
completion = cmp.config.window.bordered(border_opts),
|
||||
@@ -75,7 +75,7 @@ return { -- cmp
|
||||
end,
|
||||
},
|
||||
completion = { completeopt = "menu,menuone,noinsert" },
|
||||
window = vim.g.completion_round_borders_enabled and window_opts or {},
|
||||
window = vim.g.completion_borders == "rounded" and window_opts or {},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||
|
||||
@@ -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