[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 5fc7ecc 10/69: Add built-in support for Dart's da

From: João Távora
Subject: [elpa] externals/eglot 5fc7ecc 10/69: Add built-in support for Dart's dart_language_server
Date: Sun, 20 Oct 2019 08:21:42 -0400 (EDT)

branch: externals/eglot
commit 5fc7ecc0f7030103570cf9f1728d06ad0e38dc7d
Author: Brady Trainor <address@hidden>
Commit: João Távora <address@hidden>

    Add built-in support for Dart's dart_language_server
    Closes #194.
    Copyright-paperwork-exempt: yes
    * README.md (Connecting to a server): Add dart_language_server.
    * eglot.el (eglot-server-programs): Add dart_language_server.
 README.md | 2 ++
 eglot.el  | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 3603e26..35b75f5 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,7 @@ for the language you're using. Otherwise, it prompts you to 
enter one.
 * Golang's [go-langserver][go-langserver]
 * Ocaml's [ocaml-language-server][ocaml-language-server]
 * R's [languageserver][r-languageserver]
+* Dart's [dart_language_server][dart_language_server]
 I'll add to this list as I test more servers. In the meantime you can
 customize `eglot-server-programs`:
@@ -350,4 +351,5 @@ Under the hood:
 [eclipse-jdt]: https://github.com/eclipse/eclipse.jdt.ls
 [ocaml-language-server]: https://github.com/freebroccolo/ocaml-language-server
 [r-languageserver]: https://cran.r-project.org/package=languageserver
+[dart_language_server]: https://github.com/natebosch/dart_language_server
 [news]: https://github.com/joaotavora/eglot/blob/master/NEWS.md
diff --git a/eglot.el b/eglot.el
index befa6cd..18067f6 100644
--- a/eglot.el
+++ b/eglot.el
@@ -100,7 +100,8 @@ language-server/bin/php-language-server.php"))
                                 ((R-mode ess-r-mode) . ("R" "--slave" "-e"
-                                (java-mode . eglot--eclipse-jdt-contact))
+                                (java-mode . eglot--eclipse-jdt-contact)
+                                (dart-mode . ("dart_language_server")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 is a mode symbol, or a list of mode symbols.  The associated

reply via email to

[Prev in Thread] Current Thread [Next in Thread]