Added wrapper for dart_language_server redirecting to modern dart lsp server

This commit is contained in:
Lucien Cartier-Tilet 2019-11-23 17:57:43 +01:00
parent 37450bd7dc
commit e91afd2255
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 18 additions and 0 deletions

View File

@ -47,6 +47,7 @@
- [[#backup][Backup]]
- [[#cppnew][Cppnew]]
- [[#cnew][Cnew]]
- [[#dart-language-server][Dart Language Server]]
- [[#dmenu][Dmenu]]
- [[#emoji-picker][Emoji picker]]
- [[#polybar-launch][Polybar-launch]]
@ -274,6 +275,21 @@
And were done!
* Dart Language Server
:PROPERTIES:
:CUSTOM_ID: h-771896e9-ab96-4158-af0b-1fcbef9ab969
:HEADER-ARGS: :tangle dart_language_server :exports code
:END:
Spacemacs' recommendations on how to use Dart with LSP is outdated, since
[[https://github.com/natebosch/dart_language_server][=dart_language_server=]] is obsolete. As recommended by the repo owner, we
should launch instead the following code:
#+BEGIN_SRC fish
#!/usr/bin/env fish
dart $DART_SDK/snapshots/analysis_server.dart.snapshot --lsp
#+END_SRC
So, instead of using the obsolete executable, instead we will be calling the
analysis server as requested.
* Dmenu
:PROPERTIES:
:CUSTOM_ID: h-50623ecd-b633-4af7-9cc4-5a032f01d1ee

View File

@ -0,0 +1,2 @@
#!/usr/bin/env fish
dart $DART_SDK/snapshots/analysis_server.dart.snapshot --lsp