]> git.eshelyaron.com Git - emacs.git/commitdiff
Add omnisharp support for c#
authorMarcus Swanson <marcus.swanson91@gmail.com>
Sat, 26 Mar 2022 21:43:31 +0000 (22:43 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Mar 2022 21:43:31 +0000 (21:43 +0000)
* eglot.el (eglot-server-programs): Add omnisharp for C#.
* README.md: Document the above change.

Copyright-paperwork-exempt: Yes
GitHub-reference: close https://github.com/joaotavora/eglot/issues/897

lisp/progmodes/eglot.el

index 83a29455147eeef9052a4ded8ab898422fe4c2f2..1c16240890519170c8023ea3c4b4e3a704e7e83c 100644 (file)
@@ -192,7 +192,8 @@ language-server/bin/php-language-server.php"))
                                 (html-mode . ,(eglot-alternatives '(("vscode-html-language-server" "--stdio") ("html-languageserver" "--stdio"))))
                                 (json-mode . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio") ("json-languageserver" "--stdio"))))
                                 (dockerfile-mode . ("docker-langserver" "--stdio"))
-                                (clojure-mode . ("clojure-lsp")))
+                                (clojure-mode . ("clojure-lsp"))
+                                (csharp-mode . ("omnisharp" "-lsp")))
   "How the command `eglot' guesses the server to start.
 An association list of (MAJOR-MODE . CONTACT) pairs.  MAJOR-MODE
 identifies the buffers that are to be managed by a specific