docs: Improve Dart language docs (#21071)
This commit is contained in:
parent
659b1c9dcf
commit
23321be2ce
1 changed files with 15 additions and 5 deletions
|
@ -5,9 +5,22 @@ Dart support is available through the [Dart extension](https://github.com/zed-ex
|
|||
- Tree Sitter: [UserNobody14/tree-sitter-dart](https://github.com/UserNobody14/tree-sitter-dart)
|
||||
- Language Server: [dart language-server](https://github.com/dart-lang/sdk)
|
||||
|
||||
## Pre-requisites
|
||||
|
||||
You will need to install the Dart SDK.
|
||||
|
||||
You can install dart from [dart.dev/get-dart](https://dart.dev/get-dart) or via the [Flutter Version Management CLI (fvm)](https://fvm.app/documentation/getting-started/installation)
|
||||
|
||||
## Configuration
|
||||
|
||||
The `dart` binary can be configured in a Zed settings file with:
|
||||
The dart extension requires no configuration if you have `dart` in your path:
|
||||
|
||||
```sh
|
||||
which dart
|
||||
dart --version
|
||||
```
|
||||
|
||||
If you would like to use a specific dart binary or use dart via FVM you can specify the `dart` binary in your Zed settings.jsons file:
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -22,7 +35,4 @@ The `dart` binary can be configured in a Zed settings file with:
|
|||
}
|
||||
```
|
||||
|
||||
<!--
|
||||
TBD: Document Dart. pubspec.yaml
|
||||
- https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/tool/lsp_spec/README.md
|
||||
-->
|
||||
Please see the Dart documentation for more information on [dart language-server capabilities](https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/tool/lsp_spec/README.md).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue