css.lua 647 B

123456789101112131415161718192021222324252627282930313233343536
  1. local common = require("lsp.common-config")
  2. local opts = {
  3. capabilities = common.capabilities,
  4. flags = common.flags,
  5. on_attach = function(client, bufnr)
  6. common.disableFormat(client)
  7. common.keyAttach(bufnr)
  8. end,
  9. settings = {
  10. css = {
  11. validate = true,
  12. -- tailwindcss
  13. lint = {
  14. unknownAtRules = "ignore",
  15. },
  16. },
  17. less = {
  18. validate = true,
  19. lint = {
  20. unknownAtRules = "ignore",
  21. },
  22. },
  23. scss = {
  24. validate = true,
  25. lint = {
  26. unknownAtRules = "ignore",
  27. },
  28. },
  29. },
  30. }
  31. return {
  32. on_setup = function(server)
  33. server.setup(opts)
  34. end,
  35. }