docs: Validate JSON snippets (settings, keymap, tasks, etc) (#40043)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -8,18 +8,18 @@ Zed has built-in support for Tailwind CSS autocomplete, linting, and hover previ
|
||||
|
||||
To configure the Tailwind CSS language server, refer [to the extension settings](https://github.com/tailwindlabs/tailwindcss-intellisense?tab=readme-ov-file#extension-settings) and add them to the `lsp` section of your `settings.json`:
|
||||
|
||||
```jsonc
|
||||
```json [settings]
|
||||
{
|
||||
"lsp": {
|
||||
"tailwindcss-language-server": {
|
||||
"settings": {
|
||||
"classFunctions": ["cva", "cx"],
|
||||
"experimental": {
|
||||
"classRegex": ["[cls|className]\\s\\:\\=\\s\"([^\"]*)"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"classRegex": ["[cls|className]\\s\\:\\=\\s\"([^\"]*)"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -40,7 +40,7 @@ Languages which can be used with Tailwind CSS in Zed:
|
||||
|
||||
Zed supports Prettier out of the box, which means that if you have the [Tailwind CSS Prettier plugin](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) installed, adding it to your Prettier configuration will make it work automatically:
|
||||
|
||||
```json
|
||||
```json [settings]
|
||||
// .prettierrc
|
||||
{
|
||||
"plugins": ["prettier-plugin-tailwindcss"]
|
||||
|
||||
Reference in New Issue
Block a user