Error when trying to call :help <something> from dashboard
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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'} }
},
- Dominant language
- Lua
- Stars
- 2.9k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvimdev/dashboard-nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvimdev/dashboard-nvim#534 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
nvimdev/dashboard-nvim#480 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nvimdev/dashboard-nvim#402 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
nvimdev/dashboard-nvim#523 · 2 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
nvimdev/dashboard-nvim#521 ·
All issues in nvimdev/dashboard-nvim
Similar issues
-
Zenmap bugOpenZenmap
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
[BUG] [25.12.5]Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pterodactyl/game-eggs#637 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
koreader/koreader#16115 · 3 comments ·
Maintainers usually reply within 1 day