tailwindcss.lua 611 B

1234567891011121314151617181920212223
  1. -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tailwindcss
  2. local opts = {
  3. settings = {
  4. tailwindCSS = {
  5. classAttributes = { "class", "className", "classList", "ngClass" },
  6. lint = {
  7. cssConflict = "warning",
  8. invalidApply = "error",
  9. invalidConfigPath = "error",
  10. invalidScreen = "error",
  11. invalidTailwindDirective = "error",
  12. invalidVariant = "error",
  13. recommendedVariantOrder = "warning",
  14. },
  15. validate = true,
  16. },
  17. },
  18. }
  19. return {
  20. on_setup = function(server)
  21. server.setup(opts)
  22. end,
  23. }