Add "terraform-ls" LSP server to Eglot

* lisp/progmodes/eglot.el (eglot-server-programs): Add "terraform-ls",
the official Terraform LSP server.  (Bug#65671)

Copyright-paperwork-exempt: yes
This commit is contained in:
Ross Timson 2023-08-31 20:28:22 +01:00 committed by Stefan Kangas
parent 5cbe96d17f
commit 369f2eea10

View file

@ -254,7 +254,8 @@ chosen (interactively or automatically)."
. ,(eglot-alternatives . ,(eglot-alternatives
'(("marksman" "server") '(("marksman" "server")
("vscode-markdown-language-server" "--stdio")))) ("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. "How the command `eglot' guesses the server to start.
An association list of (MAJOR-MODE . CONTACT) pairs. MAJOR-MODE An association list of (MAJOR-MODE . CONTACT) pairs. MAJOR-MODE
identifies the buffers that are to be managed by a specific identifies the buffers that are to be managed by a specific