-
Notifications
You must be signed in to change notification settings - Fork 44
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: default_user_settings not applied for 'names' #44
Comments
Make sure you're using the correct key for your configuration. You're using I also had an issue with the names option before I realized I wasn't using the correct keys (in my case I tried to set names at the top level instead of the correct |
@nonetallt I have it set to colorizer.setup({
user_default_options = {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue or blue
RRGGBBAA = true, -- #RRGGBBAA hex codes
AARRGGBB = false, -- 0xAARRGGBB hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
mode = "background", -- Set the display mode.
virtualtext = "■",
},
})
I still see names highlighted |
Hrmm, I have no idea where I got that... It does indeed work for me. @B4mbus I'm not sure what would be going on with yours. The place where it's determined is here: Which, for some reason, also checks the |
I am having the same problem: Likewise, it seems that the plugin does not attach to files automatically, rather it must be manually toggled all the times: perhaps this depends by how certain package managers (lazy.nvim in this case) load the configuration options? |
Describe the bug
When setting
names = false
indefault_user_settings
, color names are still highlighted. It works correctly if specified for the particular filetype, just not the defaults. I'll try to dig into more this evening.To Reproduce
Expected behavior
Color names would not be highlighted.
Screenshots
Operating System:
Arch Linux
Neovim Version:
NVIM v0.8.2
Colorizer Version:
760e27df4dd966607e8fb7fd8b6b93e3c7d2e193
The text was updated successfully, but these errors were encountered: