NvChad/nvim-colorizer.lua

Bug: not color if variable

DartMitai opened this issue · 1 comments

does not output a color if it is assigned to a variable, and outputs the color of lines that are not quite colors example text_black

Operating System:
Fedora 37 x64

Neovim Version:
0.8.0
Colorizer Version:
latest
Снимок экрана от 2022-11-15 15-04-07
Снимок экрана от 2022-11-15 15-09-04
my settings

require("colorizer").attach_to_buffer(0, { mode = "background", css = true })
local colorizer = require('colorizer')
colorizer.setup {
  filetypes = { "dart" },
  user_default_options = {
    RGB = true, -- #RGB hex codes
    RRGGBB = true, -- #RRGGBB hex codes = true, -- "Name" codes like Blue or blue
    RRGGBBAA = true, -- #RRGGBBAA hex codes
    AARRGGBB = true, -- 0xAARRGGBB hex codes
    rgb_fn = true, -- CSS rgb() and rgba() functions
    hsl_fn = true, -- CSS hsl() and hsla() functions== --, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
    css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
    -- Available modes for `mode`: foreground, background, virtualtext
    mode = "virtualtext", --Set the display mode.
                      -- Available methods are false / true / "normal" / "lsp" / "both"
                      -- True is same as normal
    tailwind = false, -- Enable tailwind colors
        -- parsers can contain values used in |user_default_options|
    sass = { enable = false, parsers = { css }, }, -- Enable sass colors
    virtualtext = "■",
  }, 
  -- all the sub-options of filetypes apply to buftypes
  buftypes = {
    "*",
    "!prompt",
    "!popup"
  },
}

This is just out of scope for this plugin. Values referencing is not supported, one way this can be done is by using lsp if it supports documentColor like tailwind.