]> git.eshelyaron.com Git - emacs.git/commitdiff
Add support for r's languageserver ()
authorAlex Branham <alex.branham@gmail.com>
Tue, 20 Nov 2018 21:27:38 +0000 (15:27 -0600)
committerMichal Krzywkowski <k.michal@zoho.com>
Thu, 22 Nov 2018 12:04:15 +0000 (13:04 +0100)
Copyright-paperwork-exempt: yes

* eglot.el (eglot-server-programs): Add R language server.
* README.md (Installation and usage): Mention it.

GitHub-reference: https://github.com/joaotavora/eglot/issues/161

lisp/progmodes/eglot.el

index c65d908978421ea7217369946615e519183dcf65..c382c67e5491fed775d1896ab8a0815ddd14aeae 100644 (file)
@@ -96,6 +96,8 @@ language-server/bin/php-language-server.php"))
                                 (kotlin-mode . ("kotlin-language-server"))
                                 (go-mode . ("go-langserver" "-mode=stdio"
                                             "-gocodecompletion"))
+                                ((R-mode ess-r-mode) . ("R" "--slave" "-e"
+                                                        "languageserver::run()"))
                                 (java-mode . eglot--eclipse-jdt-contact))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE