Latest dashboard will throw exception while loading
YangEfei opened this issue · comments
杨逸飞 commented
Describe the bug
I updated my dashboard to the latest version today, but I got the error like later:
Error executing vim.schedule lua callback: ...e/nvim/lazy/dashboard-nvim/lua/dashboard/theme/hyper.lua:341: Expected lua string
stack traceback:
[C]: in function 'nvim_buf_add_highlight'
...e/nvim/lazy/dashboard-nvim/lua/dashboard/theme/hyper.lua:341: in function 'gen_center'
...e/nvim/lazy/dashboard-nvim/lua/dashboard/theme/hyper.lua:439: in function 'callback'
...e/nvim/lazy/dashboard-nvim/lua/dashboard/theme/hyper.lua:155: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Then I guess it maybe because some configs have break changes. So I remove all of them, and use the default config with Lazy:
return {
"glepnir/dashboard-nvim",
event = "VimEnter",
config = function()
require('dashboard').setup {
}
end,
dependencies = { { "nvim-tree/nvim-web-devicons" } },
}
It still keeps throwing errors.
To Reproduce
Steps to reproduce the behavior:
Just use the latest version (bbe0234) and default config with Lazy.
Expected behavior
Load correctly.
杨逸飞 commented
BTW, my nvim version is NVIM v0.10.0-dev.
glepnir commented
hmmm I can't reproduce . it works for me everyday.
杨逸飞 commented
I reinstall the dependency nvim-web-devicons, it works correctly.
Thank you for your answer!