windwp/windline.nvim

None is not a valid color on nvim nightly

danielnehrig opened this issue · 0 comments

Issue on nvim nightly (NVIM v0.7.0-dev+1109-gfaeff49cb):
packer.nvim: Error running config for windline.nvim: ...e/pack/packer/start/windline.nvim/lua/windline/utils.lua:79: 'NONE' is not a valid color

windline.setup({
  colors_name = function(colors)
    -- print(vim.inspect(colors))
    -- ADD MORE COLOR HERE ----
    colors.FilenameFg = colors.white_light
    colors.FilenameBg = colors.black_light
    colors.transparent = "none"                 -- this is the issue
    colors.grey = "#3d3d3d"
    colors.orange = "#d8a657"
    colors.debug_yellow = "#eae611"
    colors.debug_red = "#ff6902"

    colors.wavedefault = colors.black

    colors.waveright1 = colors.wavedefault
    colors.waveright2 = colors.wavedefault
    colors.waveright3 = colors.wavedefault
    colors.waveright4 = colors.wavedefault
    colors.waveright5 = colors.wavedefault
    colors.waveright6 = colors.wavedefault
    colors.waveright7 = colors.wavedefault
    colors.waveright8 = colors.wavedefault
    colors.waveright9 = colors.wavedefault

    return colors
  end,
  statuslines = {
    default,
    quickfix,
    repl,
    explorer,
    dashboard,
  },
})

None is a valid background color in vim highlights
this works just fine on 0.6.1 but breaks on nightly
this might indicate that we have to adapt to neovim changes