Allow to configure default prettier

This commit is contained in:
Kirill Bulatov 2023-09-22 18:40:12 +03:00
parent b109075bf2
commit 6ec3927dd3
7 changed files with 60 additions and 13 deletions

View file

@ -199,7 +199,11 @@
// "arguments": ["--stdin-filepath", "{buffer_path}"]
// }
// }
// TODO kb description
// 3. Format code using Zed's Prettier integration:
// "formatter": "prettier"
// 4. Default. Format files using Zed's Prettier integration (if applicable),
// or falling back to formatting via language server:
// "formatter": "auto"
"formatter": "auto",
// How to soft-wrap long lines of text. This setting can take
// three values:
@ -430,6 +434,16 @@
"tab_size": 2
}
},
// Zed's Prettier integration settings.
// If Prettier is enabled, Zed will use this its Prettier instance for any applicable file, if
// project has no other Prettier installed.
"prettier": {
// Use regular Prettier json configuration:
// "trailingComma": "es5",
// "tabWidth": 4,
// "semi": false,
// "singleQuote": true
},
// LSP Specific settings.
"lsp": {
// Specify the LSP name as a key here.