updated the colorizer
This commit is contained in:
@@ -66,24 +66,36 @@ return {
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {
|
||||
"css",
|
||||
"scss",
|
||||
"html",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"javascriptreact",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
"svelte",
|
||||
"lua",
|
||||
"yaml",
|
||||
"toml",
|
||||
"conf",
|
||||
css = { rgb_fn = true, hsl_fn = true },
|
||||
scss = { rgb_fn = true, hsl_fn = true },
|
||||
html = { names = false },
|
||||
},
|
||||
config = function()
|
||||
require("colorizer").setup({
|
||||
"css",
|
||||
"scss",
|
||||
"sass",
|
||||
"less",
|
||||
"html",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"javascriptreact",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
"svelte",
|
||||
"lua",
|
||||
"yaml",
|
||||
"toml",
|
||||
"conf",
|
||||
}, {
|
||||
-- Default options for all filetypes
|
||||
RGB = true, -- #RGB hex codes
|
||||
RRGGBB = true, -- #RRGGBB hex codes
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
names = true, -- "Name" codes like Blue or red
|
||||
rgb_fn = true, -- CSS rgb() and rgba()
|
||||
hsl_fn = true, -- CSS hsl() and hsla()
|
||||
css = true, -- Enable all CSS features
|
||||
css_fn = true, -- Enable all CSS *functions*
|
||||
mode = "background", -- Set the display mode: foreground, background, virtualtext
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- Better terminal integration
|
||||
|
||||
Reference in New Issue
Block a user