fix(lsp): set lsp-zig-download-url-format earlier

If delayed until lsp-zig is loaded, then the `lsp-dependency` call in
lsp-zig will evaluate with the old (and incorrect) value of
`lsp-zig-download-url-format`.

Fix: #7970
Amend: bc5a8ec3fa
Amend: 7bb5df4cd4
This commit is contained in:
Henrik Lissner 2024-07-30 00:41:52 -04:00
parent 014112c16c
commit 93dfb0acfb
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -44,9 +44,8 @@ Can be a list of backends; accepts any value `company-backends' accepts.")
(setq lsp-keymap-prefix nil)) (setq lsp-keymap-prefix nil))
;; REVIEW: Remove when zigtools/zls#1879 is resolved. ;; REVIEW: Remove when zigtools/zls#1879 is resolved.
(after! lsp-zig (unless (featurep :system 'windows)
(unless (featurep :system 'windows) (setq lsp-zig-download-url-format "https://github.com/zigtools/zls/releases/latest/download/zls-%s-%s.tar.xz"))
(setq lsp-zig-download-url-format "https://github.com/zigtools/zls/releases/latest/download/zls-%s-%s.tar.xz")))
:config :config
(add-to-list 'doom-debug-variables 'lsp-log-io) (add-to-list 'doom-debug-variables 'lsp-log-io)