fix: dashboard doom 主题报错 nil index

- center desc 格式必须是 '字母 描述',doom 主题会从中解析 key
- 原来写 '查找文件' 导致 gen_center_highlights_and_keys 解析 nil
- 改为 'f 查找文件' 格式
This commit is contained in:
2026-07-16 14:55:29 +08:00
parent 5e9274162a
commit d24551d966
+6 -6
View File
@@ -193,12 +193,12 @@ return {
"", "",
}, },
center = { center = {
{ icon = " ", key = "f", desc = "查找文件", action = "Telescope find_files" }, { icon = " ", key = "f", desc = "f 查找文件", action = "Telescope find_files" },
{ icon = " ", key = "r", desc = "最近文件", action = "Telescope oldfiles" }, { icon = " ", key = "r", desc = "r 最近文件", action = "Telescope oldfiles" },
{ icon = " ", key = "g", desc = "全局搜索", action = "Telescope live_grep" }, { icon = " ", key = "g", desc = "g 全局搜索", action = "Telescope live_grep" },
{ icon = " ", key = "l", desc = "插件管理", action = "Lazy" }, { icon = " ", key = "l", desc = "l 插件管理", action = "Lazy" },
{ icon = " ", key = "m", desc = "LSP 管理", action = "Mason" }, { icon = " ", key = "m", desc = "m LSP 管理", action = "Mason" },
{ icon = " ", key = "q", desc = "退出", action = "qa" }, { icon = " ", key = "q", desc = "q 退出", action = "qa" },
}, },
footer = { " atdunbg · Neovim" }, footer = { " atdunbg · Neovim" },
}, },