diff options
author | mattn <mattn.jp@gmail.com> | 2020-02-28 10:45:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 10:45:24 +0900 |
commit | ec2c1859cf9c0c5f0d037c360a94d37af21aef4e (patch) | |
tree | f52e432eb2b623b9ef5d0d66edac5a340dc88e06 | |
parent | 60248f58b0eaf029515179bb24e21cb26fd01b82 (diff) | |
parent | 35fc77d883f984513362fa0ab85dc5d87f606801 (diff) | |
download | vim-lsp-settings-ec2c1859cf9c0c5f0d037c360a94d37af21aef4e.tar.gz vim-lsp-settings-ec2c1859cf9c0c5f0d037c360a94d37af21aef4e.tar.bz2 vim-lsp-settings-ec2c1859cf9c0c5f0d037c360a94d37af21aef4e.zip |
Merge pull request #180 from jmdevin/master
Update README with dart analysis server info
-rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -138,6 +138,12 @@ Finally, you have to install `@playlyfe/gql` into your project. $ npm install @playlyfe/gql --save-dev ``` +### [dart analysis server](https://github.com/dart-lang/sdk/tree/master/pkg/analysis_server) (Dart) + +If you have a separate existing installation of the dart analysis server and +want it to be used, it must either exist in your path, or you must specify its +location. See 'Configurations' below. + ## Configurations Most of configurations are not required. @@ -164,6 +170,24 @@ Or put `.vim-lsp-settings/settings.json` on your project root directory. } ``` +If you already have the dart analysis server installed but it is not in your +path, you can still configure the settings to use it. Use the vimscript below +to change the command to start the server. Note the command has three parts: +the path to your 'dart' executable, the path to your 'analysis_server.dart.snapshot', +and the '--lsp' flag. + +```vimscript +let g:lsp_settings = { + \ 'analysis_server.dart.snapshot': { + \ 'cmd': [ + \ '/path/to/your/dart-sdk/bin/dart', + \ '/path/to/your/dart-sdk/bin/bin/snapshots/analysis_server.dart.snapshot', + \ '--lsp' + \ ], + \ }, +\ } +``` + To edit project local `settings.json`, do `:LspSettingsLocalEdit`. Overridable keys are: |