From d49d8c3103c6a456290dfd99818a55f6fd956fd0 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 24 Apr 2025 18:39:53 +0300 Subject: [PATCH] feat(lsp): enable additional Rust inlay hints --- config/plugins/lsp.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/plugins/lsp.nix b/config/plugins/lsp.nix index 0167294..4790cbb 100644 --- a/config/plugins/lsp.nix +++ b/config/plugins/lsp.nix @@ -17,7 +17,15 @@ enable = true; installCargo = false; installRustc = false; - settings.cargo.loadOutDirsFromCheck = true; + settings = { + cargo.loadOutDirsFromCheck = true; + inlayHints = { + closureCaptureHints.enable = true; + closureReturnTypeHints.enable = "always"; + implicitDrops.enable = true; + implicitSizedBoundHints.enable = true; + }; + }; }; taplo.enable = true; tailwindcss = { -- 2.44.1