colorizer.lua 489 B

12345678910111213141516171819202122232425262728293031
  1. local M = {
  2. "norcalli/nvim-colorizer.lua",
  3. branch = "master",
  4. }
  5. M.config = function()
  6. require("colorizer").setup({
  7. filetypes = {
  8. "typescript",
  9. "typescriptreact",
  10. "javascript",
  11. "javascriptreact",
  12. "css",
  13. "html",
  14. "astro",
  15. "lua",
  16. "go",
  17. "golang",
  18. "bash",
  19. "sh",
  20. },
  21. user_default_options = {
  22. names = false,
  23. rgb_fn = true,
  24. hsl_fn = true,
  25. tailwind = "both",
  26. },
  27. })
  28. end
  29. return M