From c9c0b7786315ebd0edcc67f5553cf001121f9627 Mon Sep 17 00:00:00 2001 From: Lakshmi Kannan Date: Sun, 18 Jan 2026 10:16:23 -0600 Subject: [PATCH] Fix lsp-rust-analyzer-display-reborrow-hints config value Change from `nil` to `"never"`. The rust-analyzer LSP server expects a string value ("never", "always", or "mutable"), not nil. Using nil causes this error on LSP startup: LSP :: invalid config value: /inlayHints/reborrowHints/enable: data did not match any variant of untagged enum ReborrowHintsDef Co-Authored-By: Claude Opus 4.5 --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 699f6a9..a43e3c1 100644 --- a/init.el +++ b/init.el @@ -58,7 +58,7 @@ (lsp-rust-analyzer-display-lifetime-elision-hints-use-parameter-names nil) (lsp-rust-analyzer-display-closure-return-type-hints t) (lsp-rust-analyzer-display-parameter-hints nil) - (lsp-rust-analyzer-display-reborrow-hints nil) + (lsp-rust-analyzer-display-reborrow-hints "never") :config (add-hook 'lsp-mode-hook 'lsp-ui-mode))