norcalli / nvim-colorizer.lua

The fastest Neovim colorizer.
Other
2.23k stars 117 forks source link

Bug: Tailwind colors aren't being displayed #90

Closed SingularisArt closed 1 year ago

SingularisArt commented 1 year ago

Describe the bug When using tailwind, the names of the colors aren't displayed.

To Reproduce Here's my colorizer.lua file:

local colorizer = require_clean("colorizer")
colorizer.setup({ "*" }, {
  RGB = true, -- #RGB hex codes
  RRGGBB = true, -- #RRGGBB hex codes
  names = true, -- "Name" codes like Blue or blue
  RRGGBBAA = true, -- #RRGGBBAA hex codes
  rgb_fn = true, -- CSS rgb() and rgba() functions
  hsl_fn = true, -- CSS hsl() and hsla() functions
  css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
  css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
  -- Available modes: foreground, background, virtualtext
  mode = "background", -- Set the display mode.
})

Expected behavior I expect the color names in CSS to be displayed, like this reddit post.

Screenshots error

Operating System: EndeavourOS 5.19.4

Neovim Version: NVIM v0.8.0-dev-973-g253f0ffd8d

Colorizer Version: 36c610a9717cc9ec426a07c8e6bf3b3abcb139d6

A quick question: How do I get the display like this?

display

SingularisArt commented 1 year ago

Moving to https://github.com/NvChad/nvim-colorizer.lua/issues/12#issue-1361061459