nvimdev / dashboard-nvim

vim dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest dashboard will throw exception while loading

YangEfei opened this issue · comments

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.

Screenshots
image
image

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

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

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