scottmckendry / cyberdream.nvim

🤖💤 High-contrast, Futuristic & Vibrant Coloursheme for Neovim
MIT License
609 stars 25 forks source link

Error after update #67

Closed muzichen closed 2 months ago

muzichen commented 2 months ago

Description

Today I just update the cyberdream colorscheme, and it tells me it has break changes. When I restart nvim there is an error message like this: image

image

And I use lazy.vim.

Neovim version?

0.10.0

What should happen?

No Error message.

What happened instead?

Error message is showed.

Your configuration

return {
  "scottmckendry/cyberdream.nvim",
  {
    "LazyVim/LazyVim",
    opts = {
      colorscheme = "cyberdream",
    },
  }
}
catoa commented 2 months ago

I ran into this as well with my lazyvim config and was able to resolve it by updating my lualine config. I now have

return {
  ...
  {
    "nvim-lualine/lualine.nvim",
    opts = function()
      local cyberdream = require("lualine.themes.cyberdream").get_theme()
      return {
        options = {
          ...
          theme = cyberdream
        }
      }
  }
}

I've redacted some things but I think this is the minimum to get this working for now.

scottmckendry commented 2 months ago

@muzichen thanks for raising the issue. @catoa is right. Take a look at the pinned issue #65 that has some more info on this.

This was the breaking change introduced in v2.

scottmckendry commented 2 months ago

Ignore my last comment and the v2 release entirely. A big mess up on my part will have broken any lualine configs using the "auto" theme.

I've resolved this now with the v3 release. If your config working in v1 it should now work again.

muzichen commented 2 months ago

@scottmckendry Thanks for your great work and thanks @catoa , it works.