]> git.eshelyaron.com Git - emacs.git/commitdiff
Add "terraform-ls" LSP server to Eglot
authorRoss Timson <me@rosstimson.com>
Thu, 31 Aug 2023 19:28:22 +0000 (20:28 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 1 Sep 2023 17:58:26 +0000 (19:58 +0200)
* lisp/progmodes/eglot.el (eglot-server-programs): Add "terraform-ls",
the official Terraform LSP server.  (Bug#65671)

Copyright-paperwork-exempt: yes

lisp/progmodes/eglot.el

index 890f1e91b860d26d4d0be98c253f1a1ede5babea..4c5b9c30d91621383e4907a0f518e37e693aee6c 100644 (file)
@@ -254,7 +254,8 @@ chosen (interactively or automatically)."
                                  . ,(eglot-alternatives
                                      '(("marksman" "server")
                                        ("vscode-markdown-language-server" "--stdio"))))
-                                (graphviz-dot-mode . ("dot-language-server" "--stdio")))
+                                (graphviz-dot-mode . ("dot-language-server" "--stdio"))
+                                (terraform-mode . ("terraform-ls" "serve")))
   "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