nvimdev / dashboard-nvim

vim dashboard
MIT License
2.22k stars 179 forks source link

Latest dashboard will throw exception while loading #383

Closed YangEfei closed 10 months ago

YangEfei commented 10 months ago

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 (bbe0234168501b8ba46f24b4fb3cb7c5b88c0784) and default config with Lazy.

Expected behavior Load correctly.

Screenshots image image

YangEfei commented 10 months ago

BTW, my nvim version is NVIM v0.10.0-dev.

glepnir commented 10 months ago

hmmm I can't reproduce . it works for me everyday.

YangEfei commented 10 months ago

I reinstall the dependency nvim-web-devicons, it works correctly. Thank you for your answer!