@@ -173,6 +173,14 @@ e.g. `/path/to/zig/lib/zig`, used to analyze std library imports."
173
173
:group 'lsp-zig
174
174
:type 'string )
175
175
176
+ (defcustom lsp-zig-zig-exe-path " "
177
+ " Zig executable path.
178
+ e.g. /path/to/zig/zig, used to run the custom build runner. If null, zig is
179
+ looked up in PATH. Will be used to infer the zig standard library path if none
180
+ is provided."
181
+ :group 'lsp-zig
182
+ :type 'string )
183
+
176
184
(defcustom lsp-zig-build-runner-path " "
177
185
" Path to the `build_runner.zig` file provided by zls.
178
186
null is equivalent to `${executable_directory}/build_runner.zig`."
@@ -283,9 +291,7 @@ and not the global storage."
283
291
; ;; Core
284
292
285
293
(lsp-register-custom-settings
286
- '((" zls.trace.server" lsp-zig-trace-server)
287
- (" zls.path" lsp-zig-zls-executable)
288
- (" zls.enable_snippets" lsp-zls-enable-snippets t )
294
+ '((" zls.enable_snippets" lsp-zls-enable-snippets t )
289
295
(" zls.enable_argument_placeholders" lsp-zig-enable-argument-placeholders t )
290
296
(" zls.enable_build_on_save" lsp-zig-enable-build-on-save t )
291
297
(" zls.build_on_save_step" lsp-zig-build-on-save-step)
@@ -308,6 +314,7 @@ and not the global storage."
308
314
(" zls.replay_session_path" lsp-zig-replay-session-path)
309
315
(" zls.builtin_path" lsp-zig-builtin-path)
310
316
(" zls.zig_lib_path" lsp-zig-zig-lib-path)
317
+ (" zls.zig_exe_path" lsp-zig-zig-exe-path)
311
318
(" zls.build_runner_path" lsp-zig-build-runner-path)
312
319
(" zls.global_cache_path" lsp-zig-global-cache-path)
313
320
(" zls.build_runner_global_cache_path" lsp-zig-build-runner-global-cache-path)
0 commit comments