Skip to content

Commit d82b6f4

Browse files
authored
Merge branch 'master' into add-helm-ls-support
2 parents b992141 + c7a3fcb commit d82b6f4

36 files changed

+294
-97
lines changed

Diff for: CHANGELOG.org

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* Add fennel support
2525
* Add support for [[https://github.com/nextflow-io/language-server][Nextflow]]
2626
* Add TypeSpec support
27+
* Add Tree-sitter query support
2728
* Add [[https://github.com/mrjosh/helm-ls][helm-ls]] (YAML Kubernetes Helm) support.
2829

2930
** 9.0.0

Diff for: clients/lsp-autotools.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
makefile-bsdmake-mode
4242
makefile-imake-mode)
4343
"List of major mode that work with Autotools."
44-
:type '(list symbol)
44+
:type '(repeat function)
4545
:group 'lsp-autotools)
4646

4747
(defun lsp-autotools--download-server (_client callback error-callback update?)

Diff for: clients/lsp-awk.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"Command to run the AWK language server."
3737
:group 'lsp-awk
3838
:risky t
39-
:type '(list string))
39+
:type '(repeat string))
4040

4141
(lsp-register-client
4242
(make-lsp-client

Diff for: clients/lsp-clojure.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
(expand-file-name "~/.gitlibs/libs"))
9595
"LSP clojure dirs that should be considered library folders."
9696
:group 'lsp-clojure
97-
:type '(list string))
97+
:type '(repeat directory))
9898

9999
(defcustom lsp-clojure-test-tree-position-params nil
100100
"The optional test tree position params.

Diff for: clients/lsp-cucumber.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This is only for development use."
4141
(defcustom lsp-cucumber-active-modes
4242
'( feature-mode)
4343
"List of major mode that work with Cucumber language server."
44-
:type '(list symbol)
44+
:type '(repeat function)
4545
:group 'lsp-cucumber)
4646

4747
(lsp-defcustom lsp-cucumber-features

Diff for: clients/lsp-elixir.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Leave as default to let `executable-find' search for it."
105105
:type '(repeat string)
106106
:package-version '(lsp-mode . "8.0.0"))
107107

108-
(defcustom lsp-elixir-ls-version "v0.22.0"
108+
(defcustom lsp-elixir-ls-version "v0.25.0"
109109
"Elixir-Ls version to download.
110110
It has to be set before `lsp-elixir.el' is loaded and it has to
111111
be available here: https://github.com/elixir-lsp/elixir-ls/releases/"

Diff for: clients/lsp-eslint.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ workspace (see https://eslint.org/docs/user-guide/command-line-interface)."
176176

177177
(defcustom lsp-eslint-code-action-disable-rule-comment t
178178
"Controls whether code actions to add a rule-disabling comment should be shown."
179-
:type 'bool
179+
:type 'boolean
180180
:package-version '(lsp-mode . "6.3"))
181181

182182
(defcustom lsp-eslint-code-action-disable-rule-comment-location "separateLine"
@@ -193,12 +193,12 @@ Accepts the following values:
193193
(defcustom lsp-eslint-code-action-show-documentation t
194194
"Controls whether code actions to show documentation for an ESLint rule should
195195
be shown."
196-
:type 'bool
196+
:type 'boolean
197197
:package-version '(lsp-mode . "8.0.0"))
198198

199199
(defcustom lsp-eslint-warn-on-ignored-files nil
200200
"Controls whether a warning should be emitted when a file is ignored."
201-
:type 'bool
201+
:type 'boolean
202202
:package-version '(lsp-mode . "8.0.0"))
203203

204204
(defcustom lsp-eslint-rules-customizations []

Diff for: clients/lsp-glsl.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"Command to run the GLSL language server."
3737
:group 'lsp-glsl
3838
:risky t
39-
:type '(list string))
39+
:type '(repeat string))
4040

4141
(lsp-register-client
4242
(make-lsp-client

Diff for: clients/lsp-idris.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
(defcustom lsp-idris2-lsp-trace-server "off"
4646
"Traces the communication between VS Code and the language server."
4747
:group 'lsp-idris
48-
:type '(choice (:tag "off" "messages" "verbose"))
48+
:type '(choice (const "off")
49+
(const "messages")
50+
(const "verbose"))
4951
:package-version '(lsp-mode . "9.0.0"))
5052

5153
(lsp-register-custom-settings

Diff for: clients/lsp-kotlin.el

+7-5
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ executable with `exec-path'."
5050

5151
(defcustom lsp-kotlin-trace-server "off"
5252
"Traces the communication between VSCode and the Kotlin language server."
53-
:type '(choice (:tag "off" "messages" "verbose"))
53+
:type '(choice (const "off")
54+
(const "messages")
55+
(const "verbose"))
5456
:group 'lsp-kotlin
5557
:package-version '(lsp-mode . "6.1"))
5658

@@ -237,9 +239,9 @@ Requires lsp-inlay-hints-mode."
237239
(progn
238240
(require 'helm-source)
239241
(helm :sources (helm-make-source
240-
message 'helm-source-sync :candidates items
241-
:action '(("Identity" lambda (_)
242-
(setq lsp-kotlin--helm-result (helm-marked-candidates)))))
242+
message 'helm-source-sync :candidates items
243+
:action '(("Identity" lambda (_)
244+
(setq lsp-kotlin--helm-result (helm-marked-candidates)))))
243245
:buffer "*lsp-kotlin select*"
244246
:prompt message)
245247
lsp-kotlin--helm-result)
@@ -276,7 +278,7 @@ Requires lsp-inlay-hints-mode."
276278
(-if-let* ((option-items (-map (lambda (x)
277279
(list (lsp-get x :title)
278280
(lsp-get (lsp-get (lsp-get x :edit)
279-
:changes)
281+
:changes)
280282
(intern (concat ":" (lsp--buffer-uri))))))
281283
member-options))
282284
(selected-members (lsp-kotlin--completing-read-multiple "Select overrides" option-items nil)))

Diff for: clients/lsp-lisp.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
(defcustom lsp-lisp-active-modes
3535
'( lisp-mode)
3636
"List of major mode that work with lisp."
37-
:type '(list symbol)
37+
:type '(repeat function)
3838
:group 'lsp-lisp)
3939

4040
(defcustom lsp-lisp-alive-port 8006

Diff for: clients/lsp-lua.el

+23-11
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
:risky t
4242
:type 'file)
4343

44-
(defcustom lsp-clients-emmy-lua-jar-path (f-join lsp-server-install-dir "EmmyLua-LS-all.jar")
44+
(defcustom lsp-clients-emmy-lua-jar-path
45+
(f-join lsp-server-install-dir "EmmyLua-LS-all.jar")
4546
"Emmy Lua language server jar file."
4647
:group 'lsp-emmy-lua
4748
:version "8.0.0"
@@ -137,13 +138,17 @@
137138

138139
(defcustom lsp-lua-color-mode "Semantic"
139140
"Color mode."
140-
:type '(choice (:tag "Grammar" "Semantic"))
141+
:type '(choice (const "Grammar")
142+
(const "Semantic"))
141143
:package-version '(lsp-mode . "8.0.0")
142144
:group 'lsp-lua-language-server)
143145

144146
(defcustom lsp-lua-completion-call-snippet "Disable"
145147
"Shows function call snippets."
146-
:type '(choice (:tag "Disable" "Both" "Replace"))
148+
:type '(choice
149+
(const "Disable")
150+
(const "Both")
151+
(const "Replace"))
147152
:package-version '(lsp-mode . "8.0.0")
148153
:group 'lsp-lua-language-server)
149154

@@ -165,7 +170,9 @@ fragment. If it is set to `0`, this feature can be disabled."
165170

166171
(defcustom lsp-lua-completion-keyword-snippet "Replace"
167172
"Shows keyword syntax snippets."
168-
:type '(choice (:tag "Disable" "Both" "Replace"))
173+
:type '(choice (const "Disable")
174+
(const "Both")
175+
(const "Replace"))
169176
:package-version '(lsp-mode . "8.0.0")
170177
:group 'lsp-lua-language-server)
171178

@@ -339,7 +346,8 @@ tolerance for this setting. Please adjust it to the appropriate value."
339346
(defcustom lsp-lua-runtime-file-encoding "utf8"
340347
"File encoding. The `ansi' option is only available under the `Windows'
341348
platform."
342-
:type '(choice (:tag "utf8" "ansi"))
349+
:type '(choice (const "utf8")
350+
(const "ansi"))
343351
:package-version '(lsp-mode . "8.0.0")
344352
:group 'lsp-lua-language-server)
345353

@@ -383,7 +391,11 @@ and the language server will provide special support.
383391

384392
(defcustom lsp-lua-runtime-version "Lua 5.4"
385393
"Lua runtime version."
386-
:type '(choice (:tag "Lua 5.1" "Lua 5.2" "Lua 5.3" "Lua 5.4" "LuaJIT"))
394+
:type '(choice (const "Lua 5.1")
395+
(const "Lua 5.2")
396+
(const "Lua 5.3")
397+
(const "Lua 5.4")
398+
(const "LuaJIT"))
387399
:package-version '(lsp-mode . "8.0.0")
388400
:group 'lsp-lua-language-server)
389401

@@ -676,13 +688,13 @@ and `../lib` ,exclude `../lib/temp`.
676688
"Download the latest version of lua-language-server and extract it to
677689
`lsp-lua-roblox-language-server-download-url'."
678690
(lsp-download-install
679-
(lambda (&rest _)
691+
(lambda (&rest _)
680692
(set-file-modes lsp-lua-roblox-language-server-bin #o0700)
681693
(funcall callback))
682-
error-callback
683-
:url lsp-lua-roblox-server-download-url
684-
:store-path lsp-lua-roblox-server-store-path
685-
:decompress :zip))
694+
error-callback
695+
:url lsp-lua-roblox-server-download-url
696+
:store-path lsp-lua-roblox-server-store-path
697+
:decompress :zip))
686698

687699
(lsp-register-client
688700
(make-lsp-client

Diff for: clients/lsp-magik.el

-7
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@
5858
:group `lsp-magik
5959
:package-version '(lsp-mode . "9.0.0"))
6060

61-
(lsp-defcustom lsp-magik-java-home nil
62-
"Path to Java Runtime, Java 17 minimum."
63-
:type `string
64-
:group `lsp-magik
65-
:package-version '(lsp-mode . "9.0.0")
66-
:lsp-path "magik.javaHome")
67-
6861
(lsp-defcustom lsp-magik-product-dirs []
6962
"Paths to (compiled, containing a libs/ directory) products."
7063
:type `lsp-string-vector

Diff for: clients/lsp-marksman.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
(defcustom lsp-marksman-server-command-args '()
4343
"Command-line arguments for the marksman lsp server. Not normally Needed."
44-
:type '(repeat 'string)
44+
:type '(repeat string)
4545
:group 'lsp-marksman
4646
:package-version '(lsp-mode . "8.0.0"))
4747

Diff for: clients/lsp-mdx.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
(defcustom lsp-mdx-server-command-args '("--stdio")
4242
"Command-line arguments for the mdx lsp server."
43-
:type '(repeat 'string)
43+
:type '(repeat string)
4444
:group 'lsp-mdx
4545
:package-version '(lsp-mode . "8.0.0"))
4646

Diff for: clients/lsp-perlnavigator.el

+18-9
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,40 @@ default to ~/.perlcriticrc. (no aliases, .bat files or ~/)."
6363
:group 'lsp-perlnavigator
6464
:package-version '(lsp-mode . "9.0.0"))
6565

66+
(defconst lsp-perlnavigator--log-level-type
67+
'(choice (const "error")
68+
(const "warning")
69+
(const "info")
70+
(const "hint")
71+
(const "none")))
72+
6673
(defcustom lsp-perlnavigator-severity5 "warning"
6774
"Editor Diagnostic severity level for Critic severity 5."
68-
:type '(choice (:tag "error" "warning" "info" "hint" "none"))
75+
:type lsp-perlnavigator--log-level-type
6976
:group 'lsp-perlnavigator
7077
:package-version '(lsp-mode . "9.0.0"))
7178

7279
(defcustom lsp-perlnavigator-severity4 "info"
7380
"Editor Diagnostic severity level for Critic severity 4."
74-
:type '(choice (:tag "error" "warning" "info" "hint" "none"))
81+
:type lsp-perlnavigator--log-level-type
7582
:group 'lsp-perlnavigator
7683
:package-version '(lsp-mode . "9.0.0"))
7784

7885
(defcustom lsp-perlnavigator-severity3 "hint"
7986
"Editor Diagnostic severity level for Critic severity 3."
80-
:type '(choice (:tag "error" "warning" "info" "hint" "none"))
87+
:type lsp-perlnavigator--log-level-type
8188
:group 'lsp-perlnavigator
8289
:package-version '(lsp-mode . "9.0.0"))
8390

8491
(defcustom lsp-perlnavigator-severity2 "hint"
8592
"Editor Diagnostic severity level for Critic severity 2."
86-
:type '(choice (:tag "error" "warning" "info" "hint" "none"))
93+
:type lsp-perlnavigator--log-level-type
8794
:group 'lsp-perlnavigator
8895
:package-version '(lsp-mode . "9.0.0"))
8996

9097
(defcustom lsp-perlnavigator-severity1 "hint"
9198
"Editor Diagnostic severity level for Critic severity 1."
92-
:type '(choice (:tag "error" "warning" "info" "hint" "none"))
99+
:type lsp-perlnavigator--log-level-type
93100
:group 'lsp-perlnavigator
94101
:package-version '(lsp-mode . "9.0.0"))
95102

@@ -107,7 +114,9 @@ default to ~/.perlcriticrc. (no aliases, .bat files or ~/)."
107114

108115
(defcustom lsp-perlnavigator-trace-server "messages"
109116
"Traces the communication between VS Code and the language server."
110-
:type '(choice (:tag "off" "messages" "verbose"))
117+
:type '(choice (const "off")
118+
(const "messages")
119+
(const "verbose"))
111120
:group 'lsp-perlnavigator
112121
:package-version '(lsp-mode . "9.0.0"))
113122

@@ -166,9 +175,9 @@ default to ~/.perlcriticrc. (no aliases, .bat files or ~/)."
166175

167176

168177
(defvar lsp-perlnavigator--autoinstall-binary-path
169-
(let ((exe-name (if (eq system-type 'windows-nt) "perlnavigator.exe" "perlnavigator")))
170-
(f-join lsp-perlnavigator-autoinstall-dir "latest" (concat "perlnavigator" lsp-perlnavigator--os-suffix) exe-name))
171-
"The path to the automatically installed language server executable.")
178+
(let ((exe-name (if (eq system-type 'windows-nt) "perlnavigator.exe" "perlnavigator")))
179+
(f-join lsp-perlnavigator-autoinstall-dir "latest" (concat "perlnavigator" lsp-perlnavigator--os-suffix) exe-name))
180+
"The path to the automatically installed language server executable.")
172181

173182
(lsp-dependency
174183
'perlnavigator

Diff for: clients/lsp-php.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ definitions are found in excluded files/folders."
219219
(lsp-defcustom lsp-intelephense-trace-server "off"
220220
"Traces the communication between VSCode and the intelephense
221221
language server."
222-
:type '(choice (:tag "off" "messages" "verbose"))
222+
:type '(choice (const "off")
223+
(const "messages")
224+
(const "verbose"))
223225
:group 'lsp-intelephense
224226
:package-version '(lsp-mode . "6.1")
225227
:lsp-path "intelephense.trace.server")
@@ -440,7 +442,7 @@ already present."
440442
"Alist mapping extension names to `composer' packages.
441443
These extensions can be installed using
442444
`lsp-phpactor-install-extension'."
443-
:type '(alist :key-type "string" :value-type "string")
445+
:type '(alist :key-type string :value-type string)
444446
:group 'lsp-phpactor)
445447

446448
(defun lsp-phpactor-install-extension (extension)

Diff for: clients/lsp-pls.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
(defcustom lsp-pls-arguments nil
4747
"Additional arguments needed to execute PLS."
48-
:type '(repeat 'string)
48+
:type '(repeat string)
4949
:group 'lsp-pls
5050
:package-version '(lsp-mode . "9.0.0"))
5151

@@ -58,7 +58,7 @@ Defaults to the workspace root when not configured."
5858

5959
(defcustom lsp-pls-include nil
6060
"Paths to be added to your @INC."
61-
:type '(repeat 'string)
61+
:type '(repeat string)
6262
:group 'lsp-pls
6363
:package-version '(lsp-mode . "9.0.0"))
6464

@@ -99,7 +99,7 @@ By default, the perl used to run PLS will be used."
9999
"Additional arguments to pass to Perl when syntax checking.
100100
This is useful if there is a BEGIN block in your code that
101101
changes behavior depending on the contents of @ARGV."
102-
:type '(repeat 'string)
102+
:type '(repeat string)
103103
:group 'lsp-pls
104104
:package-version '(lsp-mode . "9.0.0"))
105105

Diff for: clients/lsp-prolog.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"The prolog-lsp server command."
4141
:group 'lsp-prolog
4242
:risky t
43-
:type '(list string))
43+
:type '(repeat string))
4444

4545
(lsp-register-client
4646
(make-lsp-client

Diff for: clients/lsp-purescript.el

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ Passed to the IDE server for source locations."
6868
(lsp-defcustom lsp-purescript-formatter "purty"
6969
"Tool to use to for formatting.
7070
Must be installed and on PATH (or npm installed with addNpmPath set)"
71-
:type '(choice (:tag none purty purs-tidy pose))
71+
:type '(choice (const "none")
72+
(const "purty")
73+
(const "purs-tidy")
74+
(const "pose"))
7275
:group 'lsp-purescript
7376
:package-version '(lsp-mode . "9.0.0")
7477
:lsp-path "purescript.formatter")

0 commit comments

Comments
 (0)