Error when trying to call :help <something> from dashboard
还没有人认领这个 Issue。
评估
调研方向
Start by reproducing the issue in Neovim with dashboard-nvim using the reported setup: launch without files, then run :help from the dashboard, after creating a new file, and with an existing file. Compare these states and capture the error text; done when help opens without an error in the affected states.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When i open neovim without files (just nvim command) i get dashboard plugin completely working, but if i try to call :help command from within this screen i get the error i show in the screenshot.
Btw that happens even after creating a new file, but not when i open an existing file.
I already tried a minimal config (the one in the installation instructions).
To Reproduce
Steps to reproduce the behavior:
- Open neovim without files to start it with dashboard;
- just try to call some help page
Screenshots
Config
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
opts = function()
local logo = [[
███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗
████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║
██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║
██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║
██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║
╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝
]]
logo = string.rep("\n", 8) .. logo .. "\n\n"
local opts = {
theme = "doom",
config = {
header = vim.split(logo, "\n"),
center = {
{ action = "ene | startinsert", desc = " New file", icon = " ", key = "n" },
{ action = "Telescope find_files", desc = " Find file", icon = " ", key = "f" },
{ action = "Telescope file_browser", desc = " File Browser", icon = " ", key = "t" },
{ action = "Telescope live_grep", desc = " Find text", icon = " ", key = "g" },
{ action = "Telescope oldfiles", desc = " Recent files", icon = " ", key = "r" },
{ action = "lua require('telescope.builtin').find_files({cwd='~/.dotfiles'})", desc = " Config", icon = " ", key = "c" },
{ action = "Telescope colorscheme", desc = " Colorschemes", icon = " ", key = "C" },
{ action = "Lazy", desc = " Lazy", icon = " ", key = "l" },
{ action = "qa", desc = " Quit", icon = " ", key = "q" },
},
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
end,
},
}
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
-- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then
vim.cmd.close()
vim.api.nvim_create_autocmd("User", {
pattern = "DashboardLoaded",
callback = function()
require("lazy").show()
end,
})
end
return opts
end,
dependencies = { {'nvim-tree/nvim-web-devicons'} }
},
- 主要语言
- Lua
- 星标
- 2.9k
- 派生
- 201
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nvimdev/dashboard-nvim 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
nvimdev/dashboard-nvim#534 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
nvimdev/dashboard-nvim#480 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
nvimdev/dashboard-nvim#402 · 2 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 38/100
nvimdev/dashboard-nvim#523 · 2 条评论 · 3 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 55/100
nvimdev/dashboard-nvim#521 ·
查看 nvimdev/dashboard-nvim 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Metastruct/outfitter#124 · 1 条评论 · 1 个 reaction ·
-
Zenmap bug未关闭Zenmap
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
-
[BUG] [25.12.5]未关闭
难度 2/5 1-3 小时 新手友好度 72/100