dotfiles/nvim/lua/plugins/colorizer.lua
Blake Rain f3b91db0c3 Automatic update
Signed-off-by: Blake Rain <blake.rain@blakerain.com>
2023-05-24 15:00:00 +01:00

27 lines
656 B
Lua

-- Colorizer: highlights colors using their color
-- https://github.com/NvChad/nvim-colorizer.lua
--
-- This plugin will change the background of a color (such as CSS hex) to match the actual color defined.
--
-- This is currently restricted to CSS-like filetypes.
local M = {
"NvChad/nvim-colorizer.lua",
event = "BufReadPre"
}
function M.config()
require("colorizer").setup({
filetypes = { "html", "css", "scss", "sass", "less", "rust" },
user_default_options = {
rgb_fn = true,
hsl_fn = true,
sass = { enable = true, parsers = { css = true } },
tailwind = true,
mode = "background"
}
})
end
return M