fix: nvim 无参数启动报错

- dashboard-nvim 从 opts 改为 config = function() 显式 setup
- opts 方式 lazy.nvim 不一定能正确传递给 dashboard 的 setup
This commit is contained in:
2026-07-16 14:52:21 +08:00
parent 55f9387dc6
commit 5e9274162a
+5 -3
View File
@@ -176,9 +176,10 @@ return {
-- ─────────────────────────────────────────────
{
"nvimdev/dashboard-nvim",
lazy = false, -- 🔧 修复:必须立即加载才能在启动时显示
lazy = false,
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {
config = function()
require("dashboard").setup({
theme = "doom",
config = {
header = {
@@ -201,7 +202,8 @@ return {
},
footer = { " atdunbg · Neovim" },
},
},
})
end,
},
-- ─────────────────────────────────────────────