To make the most of the Dart LSP in Zed, you can configure it to automatically organize imports and apply fixes on format.
Add the following to your settings.json to enable features like organizing imports on save:
{
"languages": {
"Dart": {
"format_on_save": "on",
"code_actions_on_format": {
"source.organizeImports": true,
"source.fixAll": true
}
}
}
}See:
To develop this extension, see the Developing Extensions section of the Zed docs.