nvim-colorizer.lua icon indicating copy to clipboard operation
nvim-colorizer.lua copied to clipboard

Bug: Incorrect tailwind lsp colors when applying selectors

Open Subjective opened this issue 2 years ago • 0 comments

Describe the bug lsp colors are only applied to the dark: selector when custom colors are defined. This occurs when tailwind is set to tailwind="both" during configuration.

To Reproduce nvim-colorizer config:

  {
    "NvChad/nvim-colorizer.lua",
    opts = {
      user_default_options = {
        names = false,
        tailwind = "both",
      },
    },
  },

Configure custom colors within tailwind.config:

extend: {
    colors: {
        gray: {
          700: "#AC50EF",
          800: "#2ECFF6",
        }
    }
}

Expected behavior I would expect lsp colors to take precedence over hardcoded colors upon loading.

Screenshots image image

Operating System: MacOS Ventura 13.3

Neovim Version: 0.9.0

Colorizer Version: dde3084

Additional context

Subjective avatar May 12 '23 18:05 Subjective