From b8a932d0edde96b9c83474e731abed8269797abe Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 9 Jan 2025 13:11:46 -0300 Subject: [PATCH] fix(neovim/lsp): configure rust-analyzer to have it's own profile and use check instead of clipper --- modules/home-manager/programs/neovim/lsp.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/home-manager/programs/neovim/lsp.nix b/modules/home-manager/programs/neovim/lsp.nix index 448958d..ed96f0c 100644 --- a/modules/home-manager/programs/neovim/lsp.nix +++ b/modules/home-manager/programs/neovim/lsp.nix @@ -113,6 +113,17 @@ in }, }, }, + rust_analyzer = { + settings = { + ["rust-analyzer"] = { + cargo = { + extraEnv = { CARGO_PROFILE_RUST_ANALYZER_INHERITS = "dev" }, + extraArgs = { "--profile", "rust-analyzer" }, + }, + check = { command = "check", extraArgs = {} }, + }, + } + } }, -- customize how language servers are attached handlers = {