Skip to content

Commit 3a764b1

Browse files
authored
Update elixirLs for lsp-elixir and add new option introduced in v0.29.0 (#4851)
1 parent b96102c commit 3a764b1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

clients/lsp-elixir.el

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ This requires Dialyzer."
105105
:group 'lsp-elixir
106106
:package-version '(lsp-mode . "8.0.0"))
107107

108+
(defcustom lsp-elixir-dot-formatter ".formatter.exs"
109+
"Mix environment to use for compilation."
110+
:type 'string
111+
:group 'lsp-elixir
112+
:package-version '(lsp-mode . "9.0.0"))
113+
108114
(defgroup lsp-elixir nil
109115
"LSP support for Elixir, using elixir-ls."
110116
:group 'lsp-mode
@@ -123,7 +129,7 @@ Leave as default to let `executable-find' search for it."
123129
:type '(repeat string)
124130
:package-version '(lsp-mode . "8.0.0"))
125131

126-
(defcustom lsp-elixir-ls-version "v0.26.4"
132+
(defcustom lsp-elixir-ls-version "v0.29.0"
127133
"Elixir-Ls version to download.
128134
It has to be set before `lsp-elixir.el' is loaded and it has to
129135
be available here: https://github.com/elixir-lsp/elixir-ls/releases/"
@@ -132,7 +138,7 @@ be available here: https://github.com/elixir-lsp/elixir-ls/releases/"
132138
:package-version '(lsp-mode . "9.0.0"))
133139

134140
(defcustom lsp-elixir-ls-download-url
135-
(format "https://github.com/elixir-lsp/elixir-ls/releases/download/%1$s/elixir-ls-%1$s.zip"
141+
(format "https://github.com/elixir-lsp/elixir-ls/releases/download/%1$s/elixir-ls.zip"
136142
lsp-elixir-ls-version)
137143
"Automatic download url for elixir-ls."
138144
:type 'string
@@ -199,7 +205,8 @@ be available here: https://github.com/elixir-lsp/elixir-ls/releases/"
199205
("elixirLS.suggestSpecs" lsp-elixir-suggest-specs t)
200206
("elixirLS.autoInsertRequiredAlias" lsp-elixir-auto-insert-required-alias t)
201207
("elixirLS.signatureAfterComplete" lsp-elixir-signature-after-complete t)
202-
("elixirLS.enableTestLenses" lsp-elixir-enable-test-lenses t)))
208+
("elixirLS.enableTestLenses" lsp-elixir-enable-test-lenses t)
209+
("elixirLS.dotFormatter" lsp-elixir-dot-formatter)))
203210

204211
(lsp-register-client
205212
(make-lsp-client :new-connection (lsp-stdio-connection

0 commit comments

Comments
 (0)