diff --git a/README.md b/README.md index ea316ce..c58da4b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,28 @@ A [Dart](https://dart.dev/) extension for [Zed](https://zed.dev). +## Recommended Configuration + +To make the most of the Dart LSP in Zed, you can configure it to automatically organize imports and apply fixes on format. + +### Settings (`settings.json`) + +Add the following to your `settings.json` to enable features like organizing imports on save: + +```json +{ + "languages": { + "Dart": { + "format_on_save": "on", + "code_actions_on_format": { + "source.organizeImports": true, + "source.fixAll": true + } + } + } +} +``` + ## Documentation See: