|
3 | 3 | // For a full list of overridable settings, and general information on folder-specific settings, |
4 | 4 | // see the documentation: https://zed.dev/docs/configuring-zed#settings-files |
5 | 5 | { |
| 6 | + "lsp": { |
| 7 | + "biome": { |
| 8 | + "settings": { |
| 9 | + "require_config_file": true, |
| 10 | + }, |
| 11 | + }, |
| 12 | + }, |
6 | 13 | "languages": { |
| 14 | + "CSS": { |
| 15 | + "formatter": { "language_server": { "name": "biome" } }, |
| 16 | + "code_actions_on_format": { |
| 17 | + "source.action.useSortedProperties.biome": true, |
| 18 | + "source.fixAll.biome": true, |
| 19 | + }, |
| 20 | + }, |
7 | 21 | "JavaScript": { |
8 | | - "formatter": { |
9 | | - "external": { |
10 | | - "command": "./frontend/node_modules/.bin/biome", |
11 | | - "arguments": [ |
12 | | - "check", |
13 | | - "--stdin-file-path", |
14 | | - "{buffer_path}", |
15 | | - "--write" |
16 | | - ] |
17 | | - } |
18 | | - } |
| 22 | + "formatter": { "language_server": { "name": "biome" } }, |
| 23 | + "code_actions_on_format": { |
| 24 | + "source.fixAll.biome": true, |
| 25 | + "source.organizeImports.biome": true, |
| 26 | + }, |
19 | 27 | }, |
20 | 28 | "TypeScript": { |
21 | | - "formatter": { |
22 | | - "external": { |
23 | | - "command": "./frontend/node_modules/.bin/biome", |
24 | | - "arguments": [ |
25 | | - "check", |
26 | | - "--stdin-file-path", |
27 | | - "{buffer_path}", |
28 | | - "--write" |
29 | | - ] |
30 | | - } |
31 | | - } |
32 | | - } |
33 | | - } |
| 29 | + "formatter": { "language_server": { "name": "biome" } }, |
| 30 | + "code_actions_on_format": { |
| 31 | + "source.fixAll.biome": true, |
| 32 | + "source.organizeImports.biome": true, |
| 33 | + }, |
| 34 | + }, |
| 35 | + "TSX": { |
| 36 | + "formatter": { "language_server": { "name": "biome" } }, |
| 37 | + "code_actions_on_format": { |
| 38 | + "source.fixAll.biome": true, |
| 39 | + "source.organizeImports.biome": true, |
| 40 | + }, |
| 41 | + }, |
| 42 | + }, |
34 | 43 | } |
0 commit comments