# tailwind: Allow Tailwind LS to be used in Scala \(\#11858\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1b9014bca606e2de6d84363b7b87247705e2be22)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1b9014bca606e2de6d84363b7b87247705e2be22

Requested commit: 1b9014bca606e2de6d84363b7b87247705e2be22

Commit: 1b9014bca606e2de6d84363b7b87247705e2be22

Tree: e9cdfa2fb0a899e4049f80b7428b2c6a5b20ff68

Author: Thorsten Ball

Committer: GitHub

## Message

````
tailwind: Allow Tailwind LS to be used in Scala (#11858)

This fixes the issue mentioned here:
https://github.com/zed-industries/zed/issues/5830#issuecomment-2111947083

In order for other languages to work, we need to pass the following
settings along to the Tailwind language server.

With the following Zed settings, it then also works for Scala:

```json
{
  "languages": {
    "Scala": {
      "language_servers": ["tailwindcss-language-server"]
    },
  },
  "lsp": {
    "tailwindcss-language-server": {
      "settings": {
        "includeLanguages": {
          "scala": "html"
        },
        "experimental": {
          "classRegex": ["[cls|className]\\s\\:\\=\\s\"([^\"]*)"]
        }
      }
    }
  }
}
```

Release Notes:

- Added ability to configure settings for `tailwindcss-language-server`,
namely the `includeLanguages` and `experimental` objects.

**NOTE**: I have only tested that the language server boots up for Scala
files and that the settings are forwarded correctly. I don't have a
Scala+Tailwind project with which to test that the actual completions
also work.

cc @nguyenyou
````

## Parents

- [f42f4432ec21ea9a7bd928f43277cc01a1fd9773](https://git.cafe/gitcafe/zed/commit/f42f4432ec21ea9a7bd928f43277cc01a1fd9773?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1b9014bca606e2de6d84363b7b87247705e2be22?format=markdown)
