fix: nvim 无参数启动报错
- dashboard-nvim 从 opts 改为 config = function() 显式 setup - opts 方式 lazy.nvim 不一定能正确传递给 dashboard 的 setup
This commit is contained in:
+5
-3
@@ -176,9 +176,10 @@ return {
|
|||||||
-- ─────────────────────────────────────────────
|
-- ─────────────────────────────────────────────
|
||||||
{
|
{
|
||||||
"nvimdev/dashboard-nvim",
|
"nvimdev/dashboard-nvim",
|
||||||
lazy = false, -- 🔧 修复:必须立即加载才能在启动时显示
|
lazy = false,
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
opts = {
|
config = function()
|
||||||
|
require("dashboard").setup({
|
||||||
theme = "doom",
|
theme = "doom",
|
||||||
config = {
|
config = {
|
||||||
header = {
|
header = {
|
||||||
@@ -201,7 +202,8 @@ return {
|
|||||||
},
|
},
|
||||||
footer = { " atdunbg · Neovim" },
|
footer = { " atdunbg · Neovim" },
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- ─────────────────────────────────────────────
|
-- ─────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user