Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: not color if variable #36

Open
DartMitai opened this issue Nov 15, 2022 · 1 comment
Open

Bug: not color if variable #36

DartMitai opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DartMitai
Copy link

DartMitai commented Nov 15, 2022

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"
  },
}
@DartMitai DartMitai added the bug Something isn't working label Nov 15, 2022
@Akianonymus
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants